diff options
| author | bdbai <bdbaiapp@163.com> | 2023-06-10 20:47:10 +0800 |
|---|---|---|
| committer | bdbai <bdbaiapp@163.com> | 2023-06-10 20:47:10 +0800 |
| commit | cd523f2f184b4325b860e7705b939f7ec1cfb4f0 (patch) | |
| tree | a317c76dcf2899eeb6e97da4ab684a0a21d468c6 /library/std/src | |
| parent | 48e410e317c16bb4b844245a32e29844b0d933b7 (diff) | |
| download | rust-cd523f2f184b4325b860e7705b939f7ec1cfb4f0.tar.gz rust-cd523f2f184b4325b860e7705b939f7ec1cfb4f0.zip | |
Keep uwp specific code in sync with windows-sys
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/windows/c.rs | 7 | ||||
| -rw-r--r-- | library/std/src/sys/windows/c/windows_sys.lst | 1 | ||||
| -rw-r--r-- | library/std/src/sys/windows/c/windows_sys.rs | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/library/std/src/sys/windows/c.rs b/library/std/src/sys/windows/c.rs index 929aaf5a266..5fc6136ba1f 100644 --- a/library/std/src/sys/windows/c.rs +++ b/library/std/src/sys/windows/c.rs @@ -51,9 +51,6 @@ pub type CONDITION_VARIABLE = RTL_CONDITION_VARIABLE; pub type SRWLOCK = RTL_SRWLOCK; pub type INIT_ONCE = RTL_RUN_ONCE; -#[cfg(target_vendor = "uwp")] -pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = 0xC0000002_u32 as _; - pub const CONDITION_VARIABLE_INIT: CONDITION_VARIABLE = CONDITION_VARIABLE { Ptr: ptr::null_mut() }; pub const SRWLOCK_INIT: SRWLOCK = SRWLOCK { Ptr: ptr::null_mut() }; pub const INIT_ONCE_STATIC_INIT: INIT_ONCE = INIT_ONCE { Ptr: ptr::null_mut() }; @@ -431,7 +428,7 @@ compat_fn_with_fallback! { STATUS_NOT_IMPLEMENTED } #[cfg(target_vendor = "uwp")] - pub fn RtlNtStatusToDosError(Status: NTSTATUS) -> ULONG { - Status as ULONG + pub fn RtlNtStatusToDosError(Status: NTSTATUS) -> u32 { + Status as u32 } } diff --git a/library/std/src/sys/windows/c/windows_sys.lst b/library/std/src/sys/windows/c/windows_sys.lst index 3e454199f13..2cf1ade99ce 100644 --- a/library/std/src/sys/windows/c/windows_sys.lst +++ b/library/std/src/sys/windows/c/windows_sys.lst @@ -1930,6 +1930,7 @@ Windows.Win32.Foundation.SetLastError Windows.Win32.Foundation.STATUS_DELETE_PENDING Windows.Win32.Foundation.STATUS_END_OF_FILE Windows.Win32.Foundation.STATUS_INVALID_PARAMETER +Windows.Win32.Foundation.STATUS_NOT_IMPLEMENTED Windows.Win32.Foundation.STATUS_PENDING Windows.Win32.Foundation.STATUS_SUCCESS Windows.Win32.Foundation.TRUE diff --git a/library/std/src/sys/windows/c/windows_sys.rs b/library/std/src/sys/windows/c/windows_sys.rs index 36a30f6ba56..8c8b006a1d3 100644 --- a/library/std/src/sys/windows/c/windows_sys.rs +++ b/library/std/src/sys/windows/c/windows_sys.rs @@ -3888,6 +3888,7 @@ pub type STARTUPINFOW_FLAGS = u32; pub const STATUS_DELETE_PENDING: NTSTATUS = -1073741738i32; pub const STATUS_END_OF_FILE: NTSTATUS = -1073741807i32; pub const STATUS_INVALID_PARAMETER: NTSTATUS = -1073741811i32; +pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = -1073741822i32; pub const STATUS_PENDING: NTSTATUS = 259i32; pub const STATUS_SUCCESS: NTSTATUS = 0i32; pub const STD_ERROR_HANDLE: STD_HANDLE = 4294967284u32; |
