summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--new/newcontrol_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/newcontrol_windows.c b/new/newcontrol_windows.c
index b4e5d0e..1d48229 100644
--- a/new/newcontrol_windows.c
+++ b/new/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);
}