1
0
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:
UzixLS
2018-11-03 16:19:29 +03:00
parent d4e0420295
commit 339353cce8
299 changed files with 682 additions and 165 deletions

10
core/resolver.cpp Normal file → Executable file
View 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)