dnghelp : Fix pointer cast.

Erik de Castro Lopo mle+win at mega-nerd.com
Tue Apr 22 20:47:53 CDT 2008


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

diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h
index c81f778..d6e8a41 100644
--- a/dlls/dbghelp/dbghelp_private.h
+++ b/dlls/dbghelp/dbghelp_private.h
@@ -106,7 +106,7 @@ void     hash_table_iter_init(const struct hash_table* ht,
 void*    hash_table_iter_up(struct hash_table_iter* hti);
 
 #define GET_ENTRY(__i, __t, __f) \
-    ((__t*)((char*)(__i) - (unsigned int)(&((__t*)0)->__f)))
+    ((__t*)((char*)(__i) - (char*)(&((__t*)0)->__f)))
 
 
 extern unsigned dbghelp_options;
-- 
1.5.4.3



-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"... so the notion that it is meaningful to pass pointers to memory
objects into which any random function may write random values
without having a clue where they point, has _not_ been debunked as
the sheer idiocy it really is." -- Erik Naggum, comp.lang.lisp



More information about the wine-patches mailing list