From bb9a35e809ec39262873667f878594ac50996adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 30 Sep 2014 19:04:24 -0700 Subject: [PATCH] Win: Don't let OS destroy window. Fixes issue #162. --- examples/common/entry/entry_windows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index 9beadc5e..b50a3504 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -355,7 +355,8 @@ namespace entry { destroyWindow(findHandle(_hwnd) ); } - break; + // Don't process message. Window will be destroyed later. + return 0; case WM_SIZING: {