From 82c2d2d15fb28bf8a983f84baba1ac655e90e60a Mon Sep 17 00:00:00 2001 From: freedom7341 Date: Wed, 4 Oct 2023 13:10:50 -0600 Subject: [PATCH] remove unnecessary variable --- progmgr/group.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/progmgr/group.c b/progmgr/group.c index 914c663..39a1b53 100644 --- a/progmgr/group.c +++ b/progmgr/group.c @@ -92,7 +92,6 @@ HWND CreateGroup(_In_ GROUP grp) HWND hWndGroup = NULL; HWND hWndListView = NULL; PGROUP pGroup = NULL; - UINT cbGroup = 0; // TODO: allocate memory for the group in the array // of group pointers in PGARRAY, then pass this to @@ -101,8 +100,7 @@ HWND CreateGroup(_In_ GROUP grp) // keep track of all these stupid little pointers... since I can // just associate this with the appropriate window. // calculate necessary group memory and create it - cbGroup = CalculateGroupMemory(&grp, 0); - pGroup = (PGROUP)malloc(cbGroup); + pGroup = (PGROUP)malloc(CalculateGroupMemory(&grp, 0)); // Get group minimized/maximized flags