From cfc3afe09f1e9679abb1bffec4f3d9842ae5c155 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Apr 2015 23:02:23 -0400 Subject: [PATCH] Fixed some runtime issues. Not all there... --- newcontrol_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newcontrol_windows.c b/newcontrol_windows.c index b4e5d0ee..1d48229b 100644 --- a/newcontrol_windows.c +++ b/newcontrol_windows.c @@ -36,7 +36,7 @@ static void singleSetParent(uiControl *c, uiParent *parent) singleHWND *s = (singleHWND *) (c->internal); s->parent = parent; - if (SetParent(s->hwnd, (HWND) (s->parent)) == NULL) + if (SetParent(s->hwnd, (HWND) uiParentHandle(s->parent)) == NULL) logLastError("error setting control parent in singleSetParent()"); uiParentUpdate(s->parent); }