]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Changed uintptr_t to size_t. WinCE6 doesn't seem it have the definition.
authoraSoujyuTanaka <soujyu.tanaka@access-company.com>
Sat, 11 Apr 2020 18:58:02 +0000 (03:58 +0900)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Jul 2020 21:05:55 +0000 (23:05 +0200)
Reviewed-by: Mark J. Cox <mark@awe.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11526)

(cherry picked from commit 6c2a56beec847da18e5ac60a30219f0dea39baf9)

crypto/dso/dso_win32.c

index 37892170c0f225ab8709c30d5825da7f8b2c58d8..5066331c864a1f52462a235d000622302cf58fbc 100644 (file)
@@ -565,8 +565,8 @@ static int win32_pathbyaddr(void *addr, char *path, int sz)
 
     /* Enumerate the modules to find one which includes me. */
     do {
-        if ((uintptr_t) addr >= (uintptr_t) me32.modBaseAddr &&
-            (uintptr_t) addr < (uintptr_t) (me32.modBaseAddr + me32.modBaseSize)) {
+        if ((size_t) addr >= (size_t) me32.modBaseAddr &&
+            (size_t) addr < (size_t) (me32.modBaseAddr + me32.modBaseSize)) {
             (*close_snap) (hModuleSnap);
             FreeLibrary(dll);
 # ifdef _WIN32_WCE