mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] service: fix adjustPriv return value
When OpenProcessToken fails, the function returned -1, which would be true when converted to bool. This is wrong, and it should be returning false.
This commit is contained in:
parent
563ad18f4e
commit
d57b5a320e
@ -111,7 +111,7 @@ bool adjustPriv(const char * name, DWORD attributes)
|
||||
{
|
||||
doLog("failed to open the process\n");
|
||||
winerr();
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!LookupPrivilegeValueA(NULL, name, &luid))
|
||||
|
Loading…
Reference in New Issue
Block a user