Andrew Talbot : dbghelp: Remove unneeded casts.
Alexandre Julliard
julliard at winehq.org
Wed Jan 2 07:34:42 CST 2008
Module: wine
Branch: master
Commit: 159672d01c1c6f0eae56ac8cab4990b8f5bf8de4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=159672d01c1c6f0eae56ac8cab4990b8f5bf8de4
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Mon Dec 31 21:28:09 2007 +0000
dbghelp: Remove unneeded casts.
---
dlls/dbghelp/minidump.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c
index 949545f..2a16a98 100644
--- a/dlls/dbghelp/minidump.c
+++ b/dlls/dbghelp/minidump.c
@@ -386,7 +386,7 @@ static void dump_exception_info(struct dump_context* dc,
mdExcpt.ExceptionRecord.NumberParameters = prec->NumberParameters;
mdExcpt.ExceptionRecord.__unusedAlignment = 0;
for (i = 0; i < mdExcpt.ExceptionRecord.NumberParameters; i++)
- mdExcpt.ExceptionRecord.ExceptionInformation[i] = (DWORD_PTR)prec->ExceptionInformation[i];
+ mdExcpt.ExceptionRecord.ExceptionInformation[i] = prec->ExceptionInformation[i];
mdExcpt.ThreadContext.DataSize = sizeof(*pctx);
mdExcpt.ThreadContext.Rva = dc->rva + sizeof(mdExcpt);
@@ -657,7 +657,7 @@ static void dump_memory_info(struct dump_context* dc, DWORD* size)
{
len = min(dc->mem[i].size - pos, sizeof(tmp));
if (ReadProcessMemory(dc->hProcess,
- (void*)(ULONG)(dc->mem[i].base + pos),
+ (void*)(dc->mem[i].base + pos),
tmp, len, NULL))
WriteFile(dc->hFile, tmp, len, &written, NULL);
}
More information about the wine-cvs
mailing list