fix: typo
This commit is contained in:
@@ -113,7 +113,7 @@ extern "C" NTSTATUS DriverEntry(PDRIVER_OBJECT driver, PUNICODE_STRING reg_path)
|
||||
{
|
||||
DebugPrintA("init Driver \n");
|
||||
/*
|
||||
<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>shellcode
|
||||
³õʼ»¯shellcode
|
||||
*/
|
||||
//uintptr_t size_of_shellcode = CALCSIZE(HkCreateFileW, ShellCodeEnd);
|
||||
uintptr_t size_of_shellcode = sizeof(HookCode);
|
||||
@@ -223,7 +223,7 @@ extern "C" NTSTATUS DriverEntry(PDRIVER_OBJECT driver, PUNICODE_STRING reg_path)
|
||||
DebugPrintA("success hooked at: %p \n", hook_function);
|
||||
|
||||
} else {
|
||||
DebugPrintA("can not get free speace for shellcode \n");
|
||||
DebugPrintA("Cannot free space for shellcode \n");
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -237,4 +237,4 @@ extern "C" NTSTATUS DriverEntry(PDRIVER_OBJECT driver, PUNICODE_STRING reg_path)
|
||||
}
|
||||
driver->DriverUnload = DriverUnload;
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user