[PATCH] ntoskrnl.exe: Open thread with THREAD_QUERY_INFORMATION access in KeGetCurrentThread.

Jacek Caban jacek at codeweavers.com
Fri Apr 12 08:20:28 CDT 2019


Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---

This fixes a problem spotted by Derek where we don't have enough access 
to initialize thread object. We might need a more general solution, but 
it's a good idea to have those permissions in the first place anyway.

As a side note, this code is not needed with hacks I have in the tree. 
As the FIXME says, we'd ideally just use GetCurrentThread() handle, but 
that needs more server support for device drivers acting as client threads.

  dlls/ntoskrnl.exe/ntoskrnl.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntoskrnl.exe-Open-thread-with-THREAD_QUERY_INFORMATIO.diff
Type: text/x-patch
Size: 759 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190412/9056741a/attachment.bin>


More information about the wine-devel mailing list