Eric Pouech : dbghelp: Allow 32bit dbghelp to handle 64 addresses.
Alexandre Julliard
julliard at winehq.org
Tue Nov 16 16:32:28 CST 2021
Module: wine
Branch: master
Commit: 1b7bce4bf8a791465a340fbd1d02a5f3031ed5d9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1b7bce4bf8a791465a340fbd1d02a5f3031ed5d9
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue Nov 16 17:47:16 2021 +0100
dbghelp: Allow 32bit dbghelp to handle 64 addresses.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/module.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c
index b08a536eefa..8f8820f90a9 100644
--- a/dlls/dbghelp/module.c
+++ b/dlls/dbghelp/module.c
@@ -920,8 +920,6 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if (Flags & ~(SLMFLAG_VIRTUAL))
FIXME("Unsupported Flags %08x for %s\n", Flags, debugstr_w(wImageName));
- if (!validate_addr64(BaseOfDll)) return 0;
-
pcs->loader->synchronize_module_list(pcs);
/* this is a Wine extension to the API just to redo the synchronisation */
@@ -1408,10 +1406,7 @@ BOOL WINAPI SymGetModuleInfoW64(HANDLE hProcess, DWORD64 dwAddr,
*/
DWORD WINAPI SymGetModuleBase(HANDLE hProcess, DWORD dwAddr)
{
- DWORD64 ret;
-
- ret = SymGetModuleBase64(hProcess, dwAddr);
- return validate_addr64(ret) ? ret : 0;
+ return (DWORD)SymGetModuleBase64(hProcess, dwAddr);
}
/***********************************************************************
More information about the wine-cvs
mailing list