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 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