Huw Davies : iphlpapi: Don't truncate 64-bit ptrs.

Alexandre Julliard julliard at winehq.org
Mon Aug 23 16:24:13 CDT 2021


Module: wine
Branch: master
Commit: 773c585193ac10a488716d8eb6094485b1a883f8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=773c585193ac10a488716d8eb6094485b1a883f8

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Aug 23 07:33:03 2021 +0100

iphlpapi: Don't truncate 64-bit ptrs.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51620
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51626
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/iphlpapi/iphlpapi_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index 408ac14bd1b..7d75ce5af3a 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -864,7 +864,8 @@ ULONG adapters_addresses_size( IP_ADAPTER_ADDRESSES *info )
 void adapters_addresses_copy( IP_ADAPTER_ADDRESSES *dst, IP_ADAPTER_ADDRESSES *src )
 {
     char *ptr;
-    DWORD len, align = sizeof(ULONGLONG) - 1;
+    DWORD len;
+    UINT_PTR align = sizeof(ULONGLONG) - 1;
     struct address_entry_copy_params params;
 
     while (src)




More information about the wine-cvs mailing list