瀏覽代碼

Correct condition.

Jordan Russell 1 年之前
父節點
當前提交
c3038b7ea3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Projects/Src/InstFunc.pas

+ 1 - 1
Projects/Src/InstFunc.pas

@@ -207,7 +207,7 @@ begin
     // D: adds a Discretionary ACL ("DACL", i.e. access control via SIDs)
     // P: prevents DACL from being modified by inherited ACLs
     'D:P';
-  if IsUnderWindowsTemp then begin
+  if not IsAdminAndNotDebugging then begin
     CurrentUserSid := GetCurrentUserSid;
     if CurrentUserSid = '' then
       CurrentUserSid := 'OW'; // OW: owner rights