1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

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.
This commit is contained in:
wm4 2014-10-17 22:22:10 +02:00
parent 201a656350
commit d15df00643

View File

@ -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: