Skip to content

Commit

Permalink
Update runas.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jun 26, 2021
1 parent 7cf7d80 commit 86901a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProcessHacker/runas.c
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ VOID PhSetDesktopWinStaAccess(

// TODO: Set security on the correct window station and desktop.

allAppPackagesSid = (PISID)allAppPackagesSidBuffer;
allAppPackagesSid = (PSID)allAppPackagesSidBuffer;
RtlInitializeSid(allAppPackagesSid, &appPackageAuthority, SECURITY_BUILTIN_APP_PACKAGE_RID_COUNT);
*RtlSubAuthoritySid(allAppPackagesSid, 0) = SECURITY_APP_PACKAGE_BASE_RID;
*RtlSubAuthoritySid(allAppPackagesSid, 1) = SECURITY_BUILTIN_PACKAGE_ANY_PACKAGE;
Expand Down

0 comments on commit 86901a0

Please sign in to comment.