Skip to content

Commit 6b585ab

Browse files
committed
fix: remove duplicate LookupPrivilegeValue call in patch.cpp
1 parent 9242508 commit 6b585ab

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Core/Tools/Launcher/patch.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ void Shutdown_Computer_Now(void)
364364

365365
// Get the LUID for the shutdown privilege.
366366
LookupPrivilegeValue(nullptr, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid);
367-
&tkp.Privileges[0].Luid);
368367

369368
tkp.PrivilegeCount = 1; // one privilege to set
370369
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;

0 commit comments

Comments
 (0)