From 45d1d949e44343155e804a1ad7ca27cfdacd70af Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Thu, 2 Jan 2025 20:44:50 +0100 Subject: [PATCH] objmgr don't show bogus handles In case of non-admin we don't have object address for handle and thus we cannot match handles that point to the same object. --- plugins/ExtendedTools/objprp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ExtendedTools/objprp.c b/plugins/ExtendedTools/objprp.c index 7ae2109b2576..2ca46ff490e1 100644 --- a/plugins/ExtendedTools/objprp.c +++ b/plugins/ExtendedTools/objprp.c @@ -1438,7 +1438,7 @@ VOID EtpEnumObjectHandles( } } - if (handleInfo->Object == Context->HandleItem->Object || objectNameMatched) + if ((handleInfo->Object && handleInfo->Object == Context->HandleItem->Object) || objectNameMatched) { if (useWorkQueue) PhAcquireQueuedLockExclusive(&searchResultsLock); PhAddItemList(searchResults, handleInfo);