Returning specific booleans such as FALSE, TRUE causes WriteProcessMemory to break, noticeably with Dark and Darker's anti-cheat "TavernWorker".
This patch returns the NTSTATUS of NtWriteVirtualMemory as solely handled previously, however now only in cases where VirtualQueryEx responds with an error.
Issues mentioned in #8208;
Returning specific booleans such as
FALSE
,TRUE
causesWriteProcessMemory
to break, noticeably with Dark and Darker's anti-cheat "TavernWorker".This patch returns the
NTSTATUS
ofNtWriteVirtualMemory
as solely handled previously, however now only in cases whereVirtualQueryEx
responds with an error.