[PATCH 10/12] secur32: Use 32-bit sizes in parameters structures.

Nikolay Sivov wine at gitlab.winehq.org
Tue May 31 05:58:27 CDT 2022


From: Nikolay Sivov <nsivov at codeweavers.com>

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/secur32/schannel.c     | 4 ++--
 dlls/secur32/secur32_priv.h | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index d015ff8d75a..22e46875646 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -1434,7 +1434,7 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle context_handle
     SIZE_T data_size;
     char *data;
     unsigned expected_size;
-    SIZE_T received = 0;
+    ULONG received = 0;
     int idx;
     unsigned char *buf_ptr;
     SecBufferDesc input_desc = { 0 };
@@ -1492,7 +1492,7 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle context_handle
         return status;
     }
 
-    TRACE("Received %Id bytes\n", received);
+    TRACE("Received %lu bytes\n", received);
 
     memcpy(buf_ptr + ctx->header_size, data, received);
     free(data);
diff --git a/dlls/secur32/secur32_priv.h b/dlls/secur32/secur32_priv.h
index edbe1ccc36e..bbb2c527b18 100644
--- a/dlls/secur32/secur32_priv.h
+++ b/dlls/secur32/secur32_priv.h
@@ -145,7 +145,7 @@ struct handshake_params
 {
     schan_session session;
     SecBufferDesc *input;
-    SIZE_T input_size;
+    ULONG input_size;
     SecBufferDesc *output;
     ULONG *input_offset;
     int *output_buffer_idx;
@@ -156,9 +156,9 @@ struct recv_params
 {
     schan_session session;
     SecBufferDesc *input;
-    SIZE_T input_size;
+    ULONG input_size;
     void *buffer;
-    SIZE_T *length;
+    ULONG *length;
 };
 
 struct send_params
-- 
GitLab


https://gitlab.winehq.org/wine/wine/-/merge_requests/160



More information about the wine-devel mailing list