https://bugs.winehq.org/show_bug.cgi?id=47208
--- Comment #17 from Arthur Gautier winehq@superbaloo.net --- (In reply to Jacek Caban from comment #8)
Created attachment 64476 [details] hacks
I didn't try Office 2019, but Office generally hooks some ntdll functions and those hooked functions need to be used by some ntdll code like loader. With syscall patchset internal ntdll calls don't use hooked syscall thunks unless we explicitly use them. I'm attaching a diff dug out from my tree. It may help, but it probably needs porting to current tree.
I tried to adapt your patch to current master of wine and wine-staging. I attached the patch in the previous comment.
It doesn't look like it's working, I still get the IOPL error. I'd be happy to dig a bit more, but I have no idea where to start from :(