From d15df0064368652e69fdadc7e5d99c47bfaed9c6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Oct 2014 22:22:10 +0200 Subject: win32: clear window handle on destruction As I understand, otherwise, the code will try to destroy the same window again in the cleanup part of the gui_thread(), which makes no sense and is potentially dangerous. --- video/out/w32_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index addc46bf0e..541000a7f9 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -579,6 +579,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, return 0; case WM_DESTROY: w32->destroyed = true; + w32->window = NULL; PostQuitMessage(0); return 0; case WM_SYSCOMMAND: -- cgit v1.2.3