File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -510,6 +510,9 @@ NTSTATUS CreateIfeoObject(
510
510
511
511
if (!NT_SUCCESS (status ))
512
512
{
513
+ if (status == STATUS_ACCESS_DENIED && !PhGetOwnTokenAttributes ().Elevated )
514
+ status = STATUS_ELEVATION_REQUIRED ;
515
+
513
516
PhDereferenceObject (keyPath );
514
517
return status ;
515
518
}
@@ -565,6 +568,9 @@ NTSTATUS CreateIfeoObject(
565
568
NtClose (keyRootHandle );
566
569
PhDereferenceObject (keyPath );
567
570
571
+ if (status == STATUS_ACCESS_DENIED && !PhGetOwnTokenAttributes ().Elevated )
572
+ status = STATUS_ELEVATION_REQUIRED ;
573
+
568
574
return status ;
569
575
}
570
576
@@ -600,6 +606,9 @@ NTSTATUS DeleteIfeoObject(
600
606
601
607
if (!NT_SUCCESS (status ))
602
608
{
609
+ if (status == STATUS_ACCESS_DENIED && !PhGetOwnTokenAttributes ().Elevated )
610
+ status = STATUS_ELEVATION_REQUIRED ;
611
+
603
612
PhDereferenceObject (keyPath );
604
613
return status ;
605
614
}
@@ -657,5 +666,8 @@ NTSTATUS DeleteIfeoObject(
657
666
NtClose (keyRootHandle );
658
667
PhDereferenceObject (keyPath );
659
668
669
+ if (status == STATUS_ACCESS_DENIED && !PhGetOwnTokenAttributes ().Elevated )
670
+ status = STATUS_ELEVATION_REQUIRED ;
671
+
660
672
return status ;
661
673
}
You can’t perform that action at this time.
0 commit comments