Fix compiler warning.
This commit is contained in:
parent
0bc384f0f7
commit
5d617e5002
|
@ -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 ... */
|
||||||
|
|
Loading…
Reference in New Issue