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
This series of patches is heavily inspired by
https://gitlab.winehq.org/wine/wine/-/merge_requests/277
and solves problems related to
- whitespace only lines in blocks
- EOF in the middle of the blocks
- lines with caret followed by EOF
--
v3: cmd: Handle lines terminated with caret followed by EOF
cmd: Handle unterminated/unbalanced parentheses
cmd: Handle whitespace only lines in parentheses blocks
https://gitlab.winehq.org/wine/wine/-/merge_requests/4168