mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.0-RC2
This commit is contained in:
10
core/resolver.cpp
Normal file → Executable file
10
core/resolver.cpp
Normal file → Executable file
@ -371,7 +371,15 @@ DWORD encode_address(DWORD addr, const ApiLibrary* apilib)
|
||||
|
||||
//STD apilib
|
||||
if (index == 0)
|
||||
return addr;
|
||||
{
|
||||
if (addr < 0xc0000000)
|
||||
return addr;
|
||||
|
||||
//extremely rare scenario: driver hijacked apis so the address is now
|
||||
//above 0xc0000000 and we use these for encoded apilib addresses
|
||||
//so we have to create a stub in shared arena with proper address
|
||||
return (DWORD) new redir_stub(addr);
|
||||
}
|
||||
|
||||
//non-shared apilib
|
||||
if ((DWORD) apilib->mod_handle < 0x80000000)
|
||||
|
Reference in New Issue
Block a user