diff --git a/windows/window.c b/windows/window.c index 81fd8ca7..e9360eb7 100644 --- a/windows/window.c +++ b/windows/window.c @@ -41,7 +41,7 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA logLastError("error resizing window content parent in uiWindowWndProc()"); return 0; case WM_CLOSE: - if (!(*(w->onClosing))(w, w->onClosingData)) + if (!(*(w->onClosing))(uiWindow(w), w->onClosingData)) return 0; break; // fall through to DefWindowProcW() case WM_DESTROY: