mirror of
https://github.com/decompals/wibo.git
synced 2025-12-14 15:46:11 +00:00
Fix OpenProcessToken pseudo-handle regression
This commit is contained in:
@@ -166,6 +166,16 @@ struct HeapObject : public ObjectBase {
|
||||
inline constexpr uintptr_t kPseudoCurrentProcessHandleValue = static_cast<uintptr_t>(-1);
|
||||
inline constexpr uintptr_t kPseudoCurrentThreadHandleValue = static_cast<uintptr_t>(-2);
|
||||
|
||||
inline bool isPseudoCurrentProcessHandle(HANDLE h) {
|
||||
uintptr_t rawHandle = reinterpret_cast<uintptr_t>(h);
|
||||
return rawHandle == kPseudoCurrentProcessHandleValue;
|
||||
}
|
||||
|
||||
inline bool isPseudoCurrentThreadHandle(HANDLE h) {
|
||||
uintptr_t rawHandle = reinterpret_cast<uintptr_t>(h);
|
||||
return rawHandle == kPseudoCurrentThreadHandleValue;
|
||||
}
|
||||
|
||||
void tryMarkExecutable(void *mem);
|
||||
void setLastErrorFromErrno();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user