Fixed bug in Windows uiWindowOnClosing() handler.

This commit is contained in:
Pietro Gagliardi 2015-04-30 16:41:41 -04:00
parent d215ee147f
commit 14de9f3cad
1 changed files with 1 additions and 1 deletions

View File

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