[PATCH 3/4] dlls/ntdll/unix: use correct integral type

Eric Pouech eric.pouech at gmail.com
Wed Feb 16 01:31:56 CST 2022


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 dlls/ntdll/unix/server.c |    2 +-
 dlls/ntdll/unix/socket.c |    2 +-
 dlls/ntdll/unix/thread.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c
index 9d0594d3374..3c3bd0af5a5 100644
--- a/dlls/ntdll/unix/server.c
+++ b/dlls/ntdll/unix/server.c
@@ -446,7 +446,7 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result, BOO
         {
             result->virtual_protect.status = NtProtectVirtualMemory( NtCurrentProcess(), &addr, &size,
                                                                      call->virtual_protect.prot,
-                                                                     &result->virtual_protect.prot );
+                                                                     (ULONG*)&result->virtual_protect.prot );
             result->virtual_protect.addr = wine_server_client_ptr( addr );
             result->virtual_protect.size = size;
         }
diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c
index aefb9422db3..5f814e8a2dc 100644
--- a/dlls/ntdll/unix/socket.c
+++ b/dlls/ntdll/unix/socket.c
@@ -1306,7 +1306,7 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
         case IOCTL_AFD_WINE_RECVMSG:
         {
             struct afd_recvmsg_params *params = in_buffer;
-            unsigned int *ws_flags = u64_to_user_ptr(params->ws_flags_ptr);
+            DWORD *ws_flags = u64_to_user_ptr(params->ws_flags_ptr);
             int unix_flags = 0;
 
             if ((status = server_get_unix_fd( handle, 0, &fd, &needs_close, NULL, NULL )))
diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c
index 618ebb82bfb..6f5f3995c2e 100644
--- a/dlls/ntdll/unix/thread.c
+++ b/dlls/ntdll/unix/thread.c
@@ -75,7 +75,7 @@ WINE_DECLARE_DEBUG_CHANNEL(seh);
 #define PTHREAD_STACK_MIN 16384
 #endif
 
-static int nb_threads = 1;
+static LONG nb_threads = 1;
 
 static inline int get_unix_exit_code( NTSTATUS status )
 {




More information about the wine-devel mailing list