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 c999188 commit 8e610b2Copy full SHA for 8e610b2
library/std/src/sys/windows/thread.rs
@@ -30,13 +30,17 @@ impl Thread {
30
// PTHREAD_STACK_MIN bytes big. Windows has no such lower limit, it's
31
// just that below a certain threshold you can't do anything useful.
32
// That threshold is application and architecture-specific, however.
33
+
34
+ // this is needed on 9X/ME - passing null_mut() is not allowed
35
+ let mut thread_id = 0;
36
37
let ret = c::CreateThread(
38
ptr::null_mut(),
39
stack,
40
Some(thread_start),
41
p as *mut _,
42
c::STACK_SIZE_PARAM_IS_A_RESERVATION,
- ptr::null_mut(),
43
+ &mut thread_id,
44
);
45
let ret = HandleOrNull::from_raw_handle(ret);
46
return if let Ok(handle) = ret.try_into() {
0 commit comments