mirror of
https://github.com/decompals/wibo.git
synced 2025-12-13 07:06:18 +00:00
Initial macOS support (x86_64 with Rosetta 2)
This commit is contained in:
@@ -39,7 +39,7 @@ BOOL WINAPI DuplicateHandle(HANDLE hSourceProcessHandle, HANDLE hSourceHandle, H
|
||||
|
||||
auto &handles = wibo::handles();
|
||||
if (isPseudoCurrentProcessHandle(hSourceHandle)) {
|
||||
auto po = make_pin<ProcessObject>(getpid(), -1);
|
||||
auto po = make_pin<ProcessObject>(getpid(), -1, false);
|
||||
auto handle = handles.alloc(std::move(po), 0, 0);
|
||||
DEBUG_LOG("DuplicateHandle: created process handle for current process -> %p\n", handle);
|
||||
*lpTargetHandle = handle;
|
||||
|
||||
Reference in New Issue
Block a user