зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1112709 - CreateFileW isn't hooking properly on Windows 8/8.1. r=ehsan
This commit is contained in:
Родитель
4045514658
Коммит
276b9dd00e
|
@ -157,6 +157,7 @@ int main()
|
|||
TestHook("kernel32.dll", "VirtualAlloc") &&
|
||||
TestHook("kernel32.dll", "MapViewOfFile") &&
|
||||
TestHook("gdi32.dll", "CreateDIBSection") &&
|
||||
TestHook("kernel32.dll", "CreateFileW") &&
|
||||
#endif
|
||||
TestDetour("ntdll.dll", "LdrLoadDll")) {
|
||||
printf("TEST-PASS | WindowsDllInterceptor | all checks passed\n");
|
||||
|
|
|
@ -397,6 +397,9 @@ protected:
|
|||
pJmp32 = nBytes;
|
||||
// jmp 32bit offset
|
||||
nBytes += 5;
|
||||
} else if (origBytes[nBytes] == 0xff && origBytes[nBytes + 1] == 0x25) {
|
||||
// jmp [disp32]
|
||||
nBytes += 6;
|
||||
} else {
|
||||
//printf ("Unknown x86 instruction byte 0x%02x, aborting trampoline\n", origBytes[nBytes]);
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче