From 14de9f3cade132c082e9fc9fad3bd66ff13bc5ed Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 30 Apr 2015 16:41:41 -0400 Subject: [PATCH] Fixed bug in Windows uiWindowOnClosing() handler. --- windows/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/window.c b/windows/window.c index 13254f76..7b461318 100644 --- a/windows/window.c +++ b/windows/window.c @@ -50,7 +50,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA logLastError("error resizing uiWindow box in windowWndProc()"); return 0; case WM_CLOSE: - if (!(*(w->onClosing))(uiWindow(w), w->onClosingData)) + if ((*(w->onClosing))(uiWindow(w), w->onClosingData)) uiControlDestroy(uiControl(w)); return 0; // we destroyed it already }