From c43c1765380d7e1028c202d8ea85ac66a86602fc Mon Sep 17 00:00:00 2001 From: freedom7341 Date: Tue, 10 Oct 2023 13:14:29 -0600 Subject: [PATCH] grup --- progmgr/group.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/progmgr/group.c b/progmgr/group.c index 2204555..ded72ae 100644 --- a/progmgr/group.c +++ b/progmgr/group.c @@ -191,11 +191,15 @@ PITEM CreateItem(_In_ HWND hWndGroup, _In_ PITEM pi) PGROUP pGroup = NULL; PITEM pItem = NULL; + // we actually just want the group pointer lol + pGroup = (PGROUP)GetWindowLongPtr(hWndGroup, GWLP_USERDATA); + // return NULL if we can't get to the group or item if (hWndGroup == NULL) return NULL; - if ((pGroup = (PGROUP)GetWindowLongPtr(hWndGroup, GWLP_USERDATA)) == NULL) + if (pGroup == NULL) return NULL; + if (pi == NULL) return NULL;