28 Jan
2023
28 Jan
'23
7:01 a.m.
This should probably come from the current thread; perhaps it should just be keyed on PsIsSystemThread(KeGetCurrentThread()). Ideally we'd have at least some tests.
I agree that that's about the best we can do. It won't work for Zw*() calls though, since we just forward Zw*() to Nt*() counterparts just like ntdll. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2033#note_22225