[PATCH] user32: Make functions use display dc thread-safe

吕果 lvguo at deepin.com
Thu Jan 11 23:39:38 CST 2018


Some functions in sysparams.c invoke get_display_dc to get display dc and
  then use it without lock mechanism. it will cause condition race in multi-thread.

PS:
  I dont't kown how to make a test than can stably run into this problem, but
  call GetSystemMetrics(SM_CXSCREEN) within a tight loop in different thread
  will get zero finally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Make-functions-use-display-dc-thread-safe.patch
Type: application/octet-stream
Size: 5701 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20180112/85b43347/attachment.obj>


More information about the wine-devel mailing list