winex11.drv: Avoid race condition in X11 error handling.
commit2e4bfa642e31f9690365d6daf42ef87a74331cf7
authorTorge Matthies <openglfreak@googlemail.com>
Sun, 6 Jun 2021 23:05:16 +0000 (7 01:05 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 8 Jun 2021 20:28:44 +0000 (8 22:28 +0200)
treef0af0cc407fa2fd72f809b4dec8d1cd311ef4e07
parenta1bae9f288a53d21a60dca5460b376a493585e07
winex11.drv: Avoid race condition in X11 error handling.

The err_callback* globals need to be protected from being overwritten
before X11DRV_check_error is called, otherwise no or the wrong error
handler might be called.

Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winex11.drv/x11drv_main.c