Skip to content

Commit

Permalink
#5: A call to an OS function failed in Win64 build using InstallHook
Browse files Browse the repository at this point in the history
  • Loading branch information
ccy committed Jul 2, 2020
1 parent 2347efa commit 0579719
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions MemoryModuleHook.pas
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ function LoadLibraryHook(lpLibFileName: PWideChar): HMODULE; stdcall;

LibPtr := GetLibPtrCallback(lpLibFileName);
if LibPtr = nil then
begin
LoadLibrary_Old(lpLibFileName);
Exit;
end;
Exit(LoadLibrary_Old(lpLibFileName));

Result := HMODULE(MemoryLoadLibary(LibPtr));
if Result <> 0 then
Expand Down

0 comments on commit 0579719

Please sign in to comment.