about summary refs log tree commit diff
path: root/library/std/src/sys/sync/mutex
diff options
context:
space:
mode:
authorLi Keqing <auroracloud4096@gmail.com>2025-02-19 18:05:37 +0800
committerLi Keqing <auroracloud4096@gmail.com>2025-02-19 18:05:37 +0800
commit35febd7a6d57179f41cb5b4a37f9545915e4d7a5 (patch)
tree0f82a7f9400215e676919cc5a1b9e5a1060c13aa /library/std/src/sys/sync/mutex
parent5986ff05d8480da038dd161b3a6aa79ff364a851 (diff)
Fix `*-win7-windows-msvc` target since 26eeac1a1e9fe46ffd80dd0d3dafdd2c2a644306
Diffstat (limited to 'library/std/src/sys/sync/mutex')
-rw-r--r--library/std/src/sys/sync/mutex/windows7.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/sync/mutex/windows7.rs b/library/std/src/sys/sync/mutex/windows7.rs
index 689dba10f01..0b57de78ba6 100644
--- a/library/std/src/sys/sync/mutex/windows7.rs
+++ b/library/std/src/sys/sync/mutex/windows7.rs
@@ -44,7 +44,7 @@ impl Mutex {
 
     #[inline]
     pub fn try_lock(&self) -> bool {
-        unsafe { c::TryAcquireSRWLockExclusive(raw(self)) != 0 }
+        unsafe { c::TryAcquireSRWLockExclusive(raw(self)) }
     }
 
     #[inline]