Skip to content

Commit

Permalink
Update Main.cpp
Browse files Browse the repository at this point in the history
上传代码
  • Loading branch information
A-Normal-User authored Sep 6, 2022
1 parent b5ef891 commit a7e4b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ NTSTATUS __stdcall MyNtOpenFile(PHANDLE FileHandle,
OpenOptions);
//调用原函数
if (wcsstr(ObjectAttributes->ObjectName->Buffer, L"advapi32res.dll")) {
//如果是加载的sxs.dll
//如果是加载的advapi32res.dll
g_MyNtOpenFileHook.Stop();
//取消Hook
g_MyNtMapViewOfSectionHook.Start("ntdll.dll", "NtMapViewOfSection", (FARPROC)MyNtMapViewOfSection);
Expand Down Expand Up @@ -203,4 +203,4 @@ DWORD GetProtect(DWORD Characteristics) {
}
}
}
}
}

0 comments on commit a7e4b5f

Please sign in to comment.