fix func
This commit is contained in:
@@ -7,16 +7,6 @@ namespace anit_screen_grap
|
||||
{
|
||||
auto GreProtectSpriteContent(HWND hWnd, UINT Flags) -> BOOL
|
||||
{
|
||||
UNREFERENCED_PARAMETER(hWnd);
|
||||
UNREFERENCED_PARAMETER(Flags);
|
||||
auto eprocess = kernel_function::FindProcess("IHuan.exe");
|
||||
|
||||
ObDereferenceObject(eprocess);
|
||||
|
||||
KAPC_STATE apc{ 0 };
|
||||
|
||||
KeStackAttachProcess(eprocess, &apc);
|
||||
|
||||
typedef BOOL(__fastcall* fn_GreProtectSpriteContent)(LPVOID, HWND, INT, UINT);
|
||||
static fn_GreProtectSpriteContent _GreProtectSpriteContent = nullptr;
|
||||
if (!_GreProtectSpriteContent) {
|
||||
@@ -41,7 +31,6 @@ namespace anit_screen_grap
|
||||
|
||||
auto suc = _GreProtectSpriteContent(NULL, hWnd, TRUE, Flags);
|
||||
|
||||
KeUnstackDetachProcess(&apc);
|
||||
return suc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user