Alexandre Julliard : dbghelp: Fix a couple of pointer cast warnings.

Alexandre Julliard julliard at winehq.org
Mon Jan 16 13:01:32 CST 2012


Module: wine
Branch: master
Commit: 55107912f0188fc100e0bbc76b840beca9f3c6c9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=55107912f0188fc100e0bbc76b840beca9f3c6c9

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 16 17:51:45 2012 +0100

dbghelp: Fix a couple of pointer cast warnings.

---

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

diff --git a/dlls/dbghelp/cpu_i386.c b/dlls/dbghelp/cpu_i386.c
index 70ee9e6..e604e10 100644
--- a/dlls/dbghelp/cpu_i386.c
+++ b/dlls/dbghelp/cpu_i386.c
@@ -219,7 +219,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
         if (NtQueryInformationThread(csw->hThread, ThreadBasicInformation, &info,
                                      sizeof(info), NULL) == STATUS_SUCCESS)
         {
-            curr_switch = (unsigned long)info.TebBaseAddress + FIELD_OFFSET(TEB, WOW32Reserved);
+            curr_switch = (DWORD_PTR)info.TebBaseAddress + FIELD_OFFSET(TEB, WOW32Reserved);
             if (!sw_read_mem(csw, curr_switch, &p, sizeof(p)))
             {
                 WARN("Can't read TEB:WOW32Reserved\n");
@@ -339,13 +339,13 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
                 }
 
                 TRACE("Got a 16 bit stack switch:"
-                      "\n\tframe32: %08lx"
+                      "\n\tframe32: %p"
                       "\n\tedx:%08x ecx:%08x ebp:%08x"
                       "\n\tds:%04x es:%04x fs:%04x gs:%04x"
                       "\n\tcall_from_ip:%08x module_cs:%04x relay=%08x"
                       "\n\tentry_ip:%04x entry_point:%08x"
                       "\n\tbp:%04x ip:%04x cs:%04x\n",
-                      (unsigned long)frame16.frame32,
+                      frame16.frame32,
                       frame16.edx, frame16.ecx, frame16.ebp,
                       frame16.ds, frame16.es, frame16.fs, frame16.gs,
                       frame16.callfrom_ip, frame16.module_cs, frame16.relay,




More information about the wine-cvs mailing list