dbghelp: Remove unneeded casts.

This commit is contained in:
Andrew Talbot 2007-12-31 21:28:09 +00:00 committed by Alexandre Julliard
parent 7514283d73
commit 159672d01c
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}