Mikhail Maroukhine : dbghelp: Fix compiler warnings with flag -Wcast-qual.
Alexandre Julliard
julliard at winehq.org
Mon Mar 29 09:57:54 CDT 2010
Module: wine
Branch: master
Commit: 0519c4b68a1b27990b050ae2cf91a837b259a655
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0519c4b68a1b27990b050ae2cf91a837b259a655
Author: Mikhail Maroukhine <mikolg at yandex.ru>
Date: Sat Mar 27 16:09:03 2010 +0600
dbghelp: Fix compiler warnings with flag -Wcast-qual.
---
dlls/dbghelp/pe_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c
index 61b8c5e..baddaeb 100644
--- a/dlls/dbghelp/pe_module.c
+++ b/dlls/dbghelp/pe_module.c
@@ -377,7 +377,7 @@ static BOOL pe_load_coff_symbol_table(struct module* module)
if (!fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable || !numsym)
return TRUE;
if (!(mapping = pe_map_full(fmap, NULL))) return FALSE;
- isym = (const IMAGE_SYMBOL*)((char*)mapping + fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable);
+ isym = (const IMAGE_SYMBOL*)((const char*)mapping + fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable);
/* FIXME: no way to get strtable size */
strtable = (const char*)&isym[numsym];
sect = IMAGE_FIRST_SECTION(&fmap->u.pe.ntheader);
More information about the wine-cvs
mailing list