This forces mesa LLVMPIPE driver to use only one thread, and greatly
reduces its memory usage. The driver otherwises uses much more memory
than another driver would and often exhaust VM space in 32bit tests.
I believe this should fix several D3D/D2D/DShow test failures which are
plaging Gitlab CI.
--
v2: gitlab: Run tests with LP_NUM_THREADS=4 env var.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4182
win32u: Return ERROR_ACCESS_DENIED for WH_JOURNALRECORD and WH_JOURNALPLAYBACK on newer OS versions.
On > XP, settings WH_JOURNALRECORD or WH_JOURNALPLAYBACK hooks report ERROR_ACCESS_DENIED according to tests, even with administrator rights. PCSE_TERM depends on this to not crash. MSDN also says that journaling hooks APIs are unsupported starting in Windows 11.
So I hope this justifies the version check in NtUserSetWindowsHookEx().
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4186