Commit 6c0ccbc2 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

kernel32: Cast-qual warning fix.

parent d836a506
......@@ -968,7 +968,7 @@ static void *address_from_rva( void *base, DWORD mapping_size, DWORD rva, DWORD
return NULL;
if (rva + len <= (DWORD)sec->VirtualAddress + sec->SizeOfRawData)
return (void*)((const BYTE*) base + (sec->PointerToRawData + rva - sec->VirtualAddress));
return (void*)((LPBYTE) base + (sec->PointerToRawData + rva - sec->VirtualAddress));
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment