dbghelp/pe_module.c: Fix compiler warnings with flag -Wcast-qual
Mikhail Maroukhine
mikolg at yandex.ru
Sat Mar 27 05:09:03 CDT 2010
---
dlls/dbghelp/pe_module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c
index 61b8c5e..a6b7db9 100644
--- a/dlls/dbghelp/pe_module.c
+++ b/dlls/dbghelp/pe_module.c
@@ -210,7 +210,7 @@ static BOOL pe_map_file(HANDLE file, struct image_file_map* fmap, enum module_ty
if (nthdr->FileHeader.PointerToSymbolTable && nthdr->FileHeader.NumberOfSymbols)
{
/* FIXME ugly: should rather map the relevant content instead of copying it */
- const char* src = (const char*)mapping +
+ char* src = (char*)mapping +
nthdr->FileHeader.PointerToSymbolTable +
nthdr->FileHeader.NumberOfSymbols * sizeof(IMAGE_SYMBOL);
char* dst;
@@ -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);
--
1.6.3.3
------------jPyGykwzC5sjTv12ffiM1I--
More information about the wine-patches
mailing list