summaryrefslogtreecommitdiff
path: root/new
diff options
context:
space:
mode:
Diffstat (limited to 'new')
-rw-r--r--new/windows/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/windows/window.c b/new/windows/window.c
index 81fd8ca..e9360eb 100644
--- a/new/windows/window.c
+++ b/new/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: