Fix compiler warning.

This commit is contained in:
Ulrich Weigand 1999-06-18 16:59:37 +00:00 committed by Alexandre Julliard
parent 0bc384f0f7
commit 5d617e5002
1 changed files with 2 additions and 2 deletions

View File

@ -566,8 +566,8 @@ HMODULE PE_LoadImage( HFILE hFile, OFSTRUCT *ofs, LPCSTR *modName )
if ( nt->OptionalHeader.ImageBase & 0x80000000 ) if ( nt->OptionalHeader.ImageBase & 0x80000000 )
{ {
HMODULE sharedMod = (HMODULE)nt->OptionalHeader.ImageBase; HMODULE sharedMod = (HMODULE)nt->OptionalHeader.ImageBase;
IMAGE_NT_HEADERS *sharedNt = (LPBYTE)sharedMod IMAGE_NT_HEADERS *sharedNt = (PIMAGE_NT_HEADERS)
+ ((LPBYTE)nt - (LPBYTE)hModule); ( (LPBYTE)sharedMod + ((LPBYTE)nt - (LPBYTE)hModule) );
/* Well, this check is not really comprehensive, /* Well, this check is not really comprehensive,
but should be good enough for now ... */ but should be good enough for now ... */