mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2025-02-17 00:20:40 -05:00
force cast to lpvoid
Not necessary on MSVC 6.0, but useful for newer compilers
This commit is contained in:
parent
a113201f2c
commit
19687f9892
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ LPVOID OverwriteImport(LPVOID imageBase, LPCSTR overrideFunction, LPVOID overrid
|
|||
PIMAGE_IMPORT_BY_NAME functionName = (PIMAGE_IMPORT_BY_NAME)((UINT_PTR)imageBase + (UINT_PTR)originalFirstThunk->u1.AddressOfData);
|
||||
|
||||
if (!strcmp((const char*)functionName->Name, overrideFunction)) {
|
||||
LPVOID originalFunction = firstThunk->u1.Function;
|
||||
LPVOID originalFunction = (LPVOID)firstThunk->u1.Function;
|
||||
firstThunk->u1.Function = (PDWORD)override;
|
||||
|
||||
// Return original function and end loop here
|
||||
|
|
Loading…
Reference in a new issue