[PATCH 05/14] [DbgHelp]: don't return error when validating a 64bit wide address on a 64bit platform

Eric Pouech eric.pouech at orange.fr
Sat Dec 12 05:18:50 CST 2009




A+
---

 dlls/dbghelp/dbghelp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/dlls/dbghelp/dbghelp.c b/dlls/dbghelp/dbghelp.c
index 3f85f0d..ae26518 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -106,7 +106,7 @@ struct process*    process_find_by_handle(HANDLE hProcess)
  */
 BOOL validate_addr64(DWORD64 addr)
 {
-    if (addr >> 32)
+    if (sizeof(void*) == sizeof(int) && (addr >> 32))
     {
         FIXME("Unsupported address %s\n", wine_dbgstr_longlong(addr));
         SetLastError(ERROR_INVALID_PARAMETER);






More information about the wine-patches mailing list