remove unnecessary variable

This commit is contained in:
freedom7341
2023-10-04 13:10:50 -06:00
parent 925bb43a6d
commit 82c2d2d15f

View File

@@ -92,7 +92,6 @@ HWND CreateGroup(_In_ GROUP grp)
HWND hWndGroup = NULL; HWND hWndGroup = NULL;
HWND hWndListView = NULL; HWND hWndListView = NULL;
PGROUP pGroup = NULL; PGROUP pGroup = NULL;
UINT cbGroup = 0;
// TODO: allocate memory for the group in the array // TODO: allocate memory for the group in the array
// of group pointers in PGARRAY, then pass this to // 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 // keep track of all these stupid little pointers... since I can
// just associate this with the appropriate window. // just associate this with the appropriate window.
// calculate necessary group memory and create it // calculate necessary group memory and create it
cbGroup = CalculateGroupMemory(&grp, 0); pGroup = (PGROUP)malloc(CalculateGroupMemory(&grp, 0));
pGroup = (PGROUP)malloc(cbGroup);
// Get group minimized/maximized flags // Get group minimized/maximized flags