Fix compilation

This commit is contained in:
FutureRave 2022-01-27 17:16:40 +00:00
parent 3bb39483dc
commit 48f7cc2d46
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -634,7 +634,7 @@ namespace Components
LUID luid; LUID luid;
TOKEN_PRIVILEGES tp = { 0 }; TOKEN_PRIVILEGES tp = { 0 };
DWORD cb = sizeof(TOKEN_PRIVILEGES); DWORD cb = sizeof(TOKEN_PRIVILEGES);
if (!LookupPrivilegeValueW(nullptr, SE_DEBUG_NAME, &luid)) return; if (!LookupPrivilegeValueA(nullptr, SE_DEBUG_NAME, &luid)) return;
tp.PrivilegeCount = 1; tp.PrivilegeCount = 1;
tp.Privileges[0].Luid = luid; tp.Privileges[0].Luid = luid;