Skip to content

Commit ff7890a

Browse files
committed
Update windows ffi bindings
1 parent 93f33e9 commit ff7890a

File tree

4 files changed

+82
-98
lines changed

4 files changed

+82
-98
lines changed

std/src/sys/windows/c.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ pub use FD_SET as fd_set;
4646
pub use LINGER as linger;
4747
pub use TIMEVAL as timeval;
4848

49-
pub type CONDITION_VARIABLE = RTL_CONDITION_VARIABLE;
50-
pub type SRWLOCK = RTL_SRWLOCK;
51-
pub type INIT_ONCE = RTL_RUN_ONCE;
52-
5349
pub const CONDITION_VARIABLE_INIT: CONDITION_VARIABLE = CONDITION_VARIABLE { Ptr: ptr::null_mut() };
5450
pub const SRWLOCK_INIT: SRWLOCK = SRWLOCK { Ptr: ptr::null_mut() };
5551
pub const INIT_ONCE_STATIC_INIT: INIT_ONCE = INIT_ONCE { Ptr: ptr::null_mut() };
@@ -224,7 +220,7 @@ pub unsafe extern "system" fn ReadFileEx(
224220
) -> BOOL {
225221
windows_sys::ReadFileEx(
226222
hFile.as_raw_handle(),
227-
lpBuffer,
223+
lpBuffer.cast::<u8>(),
228224
nNumberOfBytesToRead,
229225
lpOverlapped,
230226
lpCompletionRoutine,

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
--out windows_sys.rs
2+
--config flatten std
3+
--filter
14
// tidy-alphabetical-start
25
Windows.Wdk.Storage.FileSystem.FILE_COMPLETE_IF_OPLOCKED
36
Windows.Wdk.Storage.FileSystem.FILE_CONTAINS_EXTENDED_CREATE_INFORMATION
@@ -2108,7 +2111,6 @@ Windows.Win32.Networking.WinSock.WSABASEERR
21082111
Windows.Win32.Networking.WinSock.WSABUF
21092112
Windows.Win32.Networking.WinSock.WSACleanup
21102113
Windows.Win32.Networking.WinSock.WSADATA
2111-
Windows.Win32.Networking.WinSock.WSADATA
21122114
Windows.Win32.Networking.WinSock.WSADuplicateSocketW
21132115
Windows.Win32.Networking.WinSock.WSAEACCES
21142116
Windows.Win32.Networking.WinSock.WSAEADDRINUSE
@@ -2420,8 +2422,6 @@ Windows.Win32.System.Console.STD_OUTPUT_HANDLE
24202422
Windows.Win32.System.Console.WriteConsoleW
24212423
Windows.Win32.System.Diagnostics.Debug.ARM64_NT_NEON128
24222424
Windows.Win32.System.Diagnostics.Debug.CONTEXT
2423-
Windows.Win32.System.Diagnostics.Debug.CONTEXT
2424-
Windows.Win32.System.Diagnostics.Debug.CONTEXT
24252425
Windows.Win32.System.Diagnostics.Debug.EXCEPTION_RECORD
24262426
Windows.Win32.System.Diagnostics.Debug.FACILITY_CODE
24272427
Windows.Win32.System.Diagnostics.Debug.FACILITY_NT_BIT
@@ -2435,7 +2435,6 @@ Windows.Win32.System.Diagnostics.Debug.FORMAT_MESSAGE_OPTIONS
24352435
Windows.Win32.System.Diagnostics.Debug.FormatMessageW
24362436
Windows.Win32.System.Diagnostics.Debug.M128A
24372437
Windows.Win32.System.Diagnostics.Debug.XSAVE_FORMAT
2438-
Windows.Win32.System.Diagnostics.Debug.XSAVE_FORMAT
24392438
Windows.Win32.System.Environment.FreeEnvironmentStringsW
24402439
Windows.Win32.System.Environment.GetCommandLineW
24412440
Windows.Win32.System.Environment.GetCurrentDirectoryW
@@ -2456,7 +2455,6 @@ Windows.Win32.System.Kernel.ExceptionContinueExecution
24562455
Windows.Win32.System.Kernel.ExceptionContinueSearch
24572456
Windows.Win32.System.Kernel.ExceptionNestedException
24582457
Windows.Win32.System.Kernel.FLOATING_SAVE_AREA
2459-
Windows.Win32.System.Kernel.FLOATING_SAVE_AREA
24602458
Windows.Win32.System.Kernel.OBJ_DONT_REPARSE
24612459
Windows.Win32.System.LibraryLoader.GetModuleFileNameW
24622460
Windows.Win32.System.LibraryLoader.GetModuleHandleA

0 commit comments

Comments
 (0)