Skip to content

Commit cd523f2

Browse files
committed
Keep uwp specific code in sync with windows-sys
1 parent 48e410e commit cd523f2

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

library/std/src/sys/windows/c.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ pub type CONDITION_VARIABLE = RTL_CONDITION_VARIABLE;
5151
pub type SRWLOCK = RTL_SRWLOCK;
5252
pub type INIT_ONCE = RTL_RUN_ONCE;
5353

54-
#[cfg(target_vendor = "uwp")]
55-
pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = 0xC0000002_u32 as _;
56-
5754
pub const CONDITION_VARIABLE_INIT: CONDITION_VARIABLE = CONDITION_VARIABLE { Ptr: ptr::null_mut() };
5855
pub const SRWLOCK_INIT: SRWLOCK = SRWLOCK { Ptr: ptr::null_mut() };
5956
pub const INIT_ONCE_STATIC_INIT: INIT_ONCE = INIT_ONCE { Ptr: ptr::null_mut() };
@@ -431,7 +428,7 @@ compat_fn_with_fallback! {
431428
STATUS_NOT_IMPLEMENTED
432429
}
433430
#[cfg(target_vendor = "uwp")]
434-
pub fn RtlNtStatusToDosError(Status: NTSTATUS) -> ULONG {
435-
Status as ULONG
431+
pub fn RtlNtStatusToDosError(Status: NTSTATUS) -> u32 {
432+
Status as u32
436433
}
437434
}

library/std/src/sys/windows/c/windows_sys.lst

+1
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,7 @@ Windows.Win32.Foundation.SetLastError
19301930
Windows.Win32.Foundation.STATUS_DELETE_PENDING
19311931
Windows.Win32.Foundation.STATUS_END_OF_FILE
19321932
Windows.Win32.Foundation.STATUS_INVALID_PARAMETER
1933+
Windows.Win32.Foundation.STATUS_NOT_IMPLEMENTED
19331934
Windows.Win32.Foundation.STATUS_PENDING
19341935
Windows.Win32.Foundation.STATUS_SUCCESS
19351936
Windows.Win32.Foundation.TRUE

library/std/src/sys/windows/c/windows_sys.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3888,6 +3888,7 @@ pub type STARTUPINFOW_FLAGS = u32;
38883888
pub const STATUS_DELETE_PENDING: NTSTATUS = -1073741738i32;
38893889
pub const STATUS_END_OF_FILE: NTSTATUS = -1073741807i32;
38903890
pub const STATUS_INVALID_PARAMETER: NTSTATUS = -1073741811i32;
3891+
pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = -1073741822i32;
38913892
pub const STATUS_PENDING: NTSTATUS = 259i32;
38923893
pub const STATUS_SUCCESS: NTSTATUS = 0i32;
38933894
pub const STD_ERROR_HANDLE: STD_HANDLE = 4294967284u32;

0 commit comments

Comments
 (0)