tweak the prevent delete policy bug

This commit is contained in:
BeneficialCode
2023-01-08 13:23:49 +08:00
parent 3a7a8b9cc0
commit 543eedcc76
4 changed files with 16 additions and 2 deletions
+1
View File
@@ -29,6 +29,7 @@ uint32_t WinSys::KernelModuleTracker::EnumModules() {
auto m = std::make_shared<KernelModuleInfo>();
m->Flags = p->BaseInfo.Flags;
m->FullPath = (const char*)p->BaseInfo.FullPathName;
m->NtPath = m->FullPath;
if (m->FullPath.find(global) == 0)
m->FullPath = m->FullPath.substr(global.size());
if (m->FullPath.find(root) == 0)