ValveSoftware / wine

Wine with a bit of extra spice
Other
1.3k stars 244 forks source link

kernelbase: Fix return on failed VirtualQueryEx #262

Closed nulleve closed 4 weeks ago

nulleve commented 4 weeks ago

Issues mentioned in #8208;

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.