Sweden-Number/dlls/user32
Zhiyi Zhang 449ca2fbf9 user32: Leave critical section before calling callbacks in EnumDisplayMonitors().
Previously, callbacks were called with a critical section held. It was
intended that monitor handles passed to callbacks should always be valid.
But it created a deadlock condition when callbacks call other functions
which try to grab the critical section using a different thread. Tests
also show that a monitor handle can be invalid after a display change.
So do not hold the critical section when calling callbacks. Monitor
handles will be checked when passed to GetMonitorInfo(), which is the
sole function that consumes HMONITORs.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-05 20:52:36 +02:00
..
resources
tests user32/tests: Test EnumDisplayMonitors(). 2020-05-05 20:52:33 +02:00
Makefile.in
button.c
caret.c
class.c
clipboard.c
combo.c
controls.h
cursoricon.c
dde_client.c
dde_misc.c
dde_private.h
dde_server.c
defdlg.c
defwnd.c
desktop.c
dialog.c
driver.c
edit.c
exticon.c
focus.c
hook.c
icontitle.c
input.c
listbox.c
lstr.c
mdi.c
menu.c
message.c
misc.c
msgbox.c
nonclient.c
painting.c
property.c
rawinput.c
resource.c
resources.h
scroll.c
spy.c
static.c
sysparams.c user32: Leave critical section before calling callbacks in EnumDisplayMonitors(). 2020-05-05 20:52:36 +02:00
text.c
uitools.c
user32.rc
user32.spec
user_main.c
user_private.h
win.c
win.h
winhelp.c
winpos.c
winproc.c
winstation.c
wsprintf.c