mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 06:45:05 +00:00
Dont set ERROR_SUCCESS generally
Turns out we should only be setting this in a select few cases.
This commit is contained in:
@@ -29,7 +29,6 @@ BOOL WIN_FUNC OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDL
|
||||
}
|
||||
auto token = make_pin<TokenObject>(std::move(obj), DesiredAccess);
|
||||
*TokenHandle = wibo::handles().alloc(std::move(token), 0, 0);
|
||||
wibo::lastError = ERROR_SUCCESS;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user