[DBGHELP] Fix 64 bit issue
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 7 Apr 2019 16:17:18 +0000 (18:17 +0200)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 13 Apr 2019 12:07:50 +0000 (14:07 +0200)
dll/win32/dbghelp/dbghelp_private.h
dll/win32/dbghelp/dwarf.c

index 9848acb..9eb0592 100644 (file)
@@ -151,7 +151,11 @@ struct location
 {
     unsigned            kind : 8,
                         reg;
+#ifndef __REACTOS__
     unsigned long       offset;
+#else
+    uintptr_t           offset;
+#endif
 };
 
 struct symt
index 0d51792..04438f7 100644 (file)
@@ -948,7 +948,11 @@ static BOOL dwarf2_compute_location_attr(dwarf2_parse_context_t* ctx,
                                          sizeof(unsigned) + xloc.u.block.size);
             *ptr = xloc.u.block.size;
             memcpy(ptr + 1, xloc.u.block.ptr, xloc.u.block.size);
+#ifndef __REACTOS__
             loc->offset = (unsigned long)ptr;
+#else
+            loc->offset = (uintptr_t)ptr;
+#endif
         }
     }
     return TRUE;