From f726b74d32baf3002b5656591029f34168027e16 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Apr 2015 23:14:56 -0400 Subject: Fix helper: get rid of direct casts to HWND to make errors more obvious. --- new/window_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/window_windows.c') diff --git a/new/window_windows.c b/new/window_windows.c index a52debf..0bac04b 100644 --- a/new/window_windows.c +++ b/new/window_windows.c @@ -33,7 +33,7 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA break; if (GetClientRect(w->hwnd, &r) == 0) logLastError("error getting window client rect for resize in uiWindowWndProc()"); - contenthwnd = (HWND) uiParentHandle(w->content); + contenthwnd = uiParentHWND(w->content); if (MoveWindow(contenthwnd, r.left, r.top, r.right - r.left, r.bottom - r.top, TRUE) == 0) logLastError("error resizing window content parent in uiWindowWndProc()"); return 0; -- cgit v1.2.3