This restores the check from 6bb537c8b0c that was partially reverted along with 9e599a89e30.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52231 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52354 Signed-off-by: Tim Clem tclem@codeweavers.com --- dlls/winemac.drv/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 5cf2ae6bc25..54189c251d4 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -494,7 +494,7 @@ - (void) drawRect:(NSRect)rect NSRectFill(rect); }
- if (window.surface && window.surface_mutex && + if (!window.closing && window.surface && window.surface_mutex && !pthread_mutex_lock(window.surface_mutex)) { const CGRect* rects;