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.
2 parents 898aff7 + f57e125 commit f87270aCopy full SHA for f87270a
library/std/src/sys/pal/windows/thread.rs
@@ -129,7 +129,7 @@ impl Thread {
129
130
pub(crate) fn current_os_id() -> Option<u64> {
131
// SAFETY: FFI call with no preconditions.
132
- let id: u32 = unsafe { c::GetThreadId(c::GetCurrentThread()) };
+ let id: u32 = unsafe { c::GetCurrentThreadId() };
133
134
// A return value of 0 indicates failed lookup.
135
if id == 0 { None } else { Some(id.into()) }
0 commit comments