File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -625,6 +625,19 @@ VOID PhHandleProviderUpdate(
625
625
NULL
626
626
);
627
627
628
+ // HACK: Some security products block NtQueryObject with ObjectTypeInformation and return an invalid type
629
+ // so we need to lookup the TypeName using the TypeIndex. We should improve PhGetHandleInformationEx for this case
630
+ // but for now we'll preserve backwards compat by doing the lookup here. (dmex)
631
+ if (PhIsNullOrEmptyString (handleItem -> TypeName ))
632
+ {
633
+ PPH_STRING typeName ;
634
+
635
+ if (typeName = PhGetObjectTypeName (handleItem -> TypeIndex ))
636
+ {
637
+ PhMoveReference (& handleItem -> TypeName , typeName );
638
+ }
639
+ }
640
+
628
641
if (handleItem -> TypeName && PhEqualString2 (handleItem -> TypeName , L"File" , TRUE) && KphIsConnected ())
629
642
{
630
643
KPH_FILE_OBJECT_INFORMATION objectInfo ;
You can’t perform that action at this time.
0 commit comments