From 8f4788d506c4d1a054b2b713510b021f8f101ea6 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Apr 2015 09:53:00 -0400 Subject: Fixed some build errors in the Windows backend. --- new/windows/tab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'new/windows/tab.c') diff --git a/new/windows/tab.c b/new/windows/tab.c index 1afef82..09d8abf 100644 --- a/new/windows/tab.c +++ b/new/windows/tab.c @@ -132,7 +132,7 @@ void addPage(uiTab *tt, const char *name, uiControl *child) t->pages = (uiParent **) uiRealloc(t->pages, t->cap * sizeof (uiParent *), "uiParent *[]"); } - hwnd = uiControlHWND(c); + hwnd = uiControlHWND(uiControl(t)); n = SendMessageW(hwnd, TCM_GETITEMCOUNT, 0, 0); parent = uiNewParent((uintptr_t) hwnd); @@ -179,7 +179,7 @@ uiTab *uiNewTab(void) uiWindowsNewControl(uiControl(t), &p); hwnd = uiControlHWND(uiControl(t)); - if ((*fv_SetWindowSubclass)(hwnd, tabSubProc, 0, (DWORD_PTR) c) == FALSE) + if ((*fv_SetWindowSubclass)(hwnd, tabSubProc, 0, (DWORD_PTR) t) == FALSE) logLastError("error subclassing Tab to give it its own resize handler in uiNewTab()"); uiControl(t)->PreferredSize = preferredSize; -- cgit v1.2.3