Skip to content

Commit be8d896

Browse files
authored
Rollup merge of #70510 - RalfJung:bool-vs-boolean, r=Mark-Simulacrum
fix TryEnterCriticalSection return type Source: https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-tryentercriticalsection Fixes #70504
2 parents acc1dc2 + 38c8ba3 commit be8d896

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/sys/windows

1 file changed

+1
-1
lines changed

src/libstd/sys/windows/c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ extern "system" {
778778
pub fn ioctlsocket(s: SOCKET, cmd: c_long, argp: *mut c_ulong) -> c_int;
779779
pub fn InitializeCriticalSection(CriticalSection: *mut CRITICAL_SECTION);
780780
pub fn EnterCriticalSection(CriticalSection: *mut CRITICAL_SECTION);
781-
pub fn TryEnterCriticalSection(CriticalSection: *mut CRITICAL_SECTION) -> BOOLEAN;
781+
pub fn TryEnterCriticalSection(CriticalSection: *mut CRITICAL_SECTION) -> BOOL;
782782
pub fn LeaveCriticalSection(CriticalSection: *mut CRITICAL_SECTION);
783783
pub fn DeleteCriticalSection(CriticalSection: *mut CRITICAL_SECTION);
784784

0 commit comments

Comments
 (0)