wined3d: Use a separate mutex for wndproc_table access.

Piotr Pawlow pp at siedziba.pl
Fri Jun 17 14:49:38 CDT 2011


If CreateDevice is called with hFocusWindow belonging to another thread,
then any code that does SendMessage (or equivalent) to the window while
holding the main wined3d mutex causes a deadlock, because wined3d_wndproc
tries to acquire the same mutex for wndproc_table access. Using a different
mutex for this purpose solves the problem.
---
  dlls/wined3d/wined3d_main.c |   44 
+++++++++++++++++++++++++++++++-----------
  1 files changed, 32 insertions(+), 12 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Use-a-separate-mutex-for-wndproc_table-access.txt
Type: text/x-patch
Size: 4696 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110617/7ef6a7c0/attachment-0001.bin>


More information about the wine-patches mailing list