diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-12 23:14:56 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-12 23:14:56 -0400 |
| commit | f726b74d32baf3002b5656591029f34168027e16 (patch) | |
| tree | 0adf9a657fb81b9bba2d0e0d9c29db2692fb06e2 /new/newcontrol_windows.c | |
| parent | a0bfb65122c5e6d32bdc32bb87591bf6210f4ac8 (diff) | |
Fix helper: get rid of direct casts to HWND to make errors more obvious.
Diffstat (limited to 'new/newcontrol_windows.c')
| -rw-r--r-- | new/newcontrol_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/new/newcontrol_windows.c b/new/newcontrol_windows.c index 1d48229..12a26f3 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) uiParentHandle(s->parent)) == NULL) + if (SetParent(s->hwnd, uiParentHWND(s->parent)) == NULL) logLastError("error setting control parent in singleSetParent()"); uiParentUpdate(s->parent); } |
