mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 06:45:05 +00:00
Fix OpenProcessToken pseudo-handle regression
This commit is contained in:
@@ -78,8 +78,7 @@ constexpr ULONG kOsPlatformId = 2; // VER_PLATFORM_WIN32_NT
|
||||
constexpr BYTE kProductTypeWorkstation = 1; // VER_NT_WORKSTATION
|
||||
|
||||
bool resolveProcessDetails(HANDLE processHandle, ProcessHandleDetails &details) {
|
||||
uintptr_t rawHandle = reinterpret_cast<uintptr_t>(processHandle);
|
||||
if (rawHandle == static_cast<uintptr_t>(-1)) {
|
||||
if (kernel32::isPseudoCurrentProcessHandle(processHandle)) {
|
||||
details.pid = getpid();
|
||||
details.exitCode = STILL_ACTIVE;
|
||||
details.peb = wibo::processPeb;
|
||||
|
||||
Reference in New Issue
Block a user