We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lpThreadId
CreateThread
1 parent 2eca161 commit e3f6ad0Copy full SHA for e3f6ad0
library/std/src/sys/windows/thread.rs
@@ -31,13 +31,17 @@ impl Thread {
31
// PTHREAD_STACK_MIN bytes big. Windows has no such lower limit, it's
32
// just that below a certain threshold you can't do anything useful.
33
// That threshold is application and architecture-specific, however.
34
+
35
+ // this is needed on 9X/ME - passing null_mut() is not allowed
36
+ let mut thread_id = 0;
37
38
let ret = c::CreateThread(
39
ptr::null_mut(),
40
stack,
41
Some(thread_start),
42
p as *mut _,
43
c::STACK_SIZE_PARAM_IS_A_RESERVATION,
- ptr::null_mut(),
44
+ &mut thread_id,
45
);
46
let ret = HandleOrNull::from_raw_handle(ret);
47
return if let Ok(handle) = ret.try_into() {
0 commit comments