added missing HEAP_ZERO_MEMORY
added missing HeapFree
Modified: trunk/reactos/subsys/system/regedit/childwnd.c
Modified: trunk/reactos/subsys/system/regedit/listview.c
_____
Modified: trunk/reactos/subsys/system/regedit/childwnd.c
--- trunk/reactos/subsys/system/regedit/childwnd.c 2005-10-17
11:10:11 UTC (rev 18510)
+++ trunk/reactos/subsys/system/regedit/childwnd.c 2005-10-17
11:49:36 UTC (rev 18511)
@@ -270,7 +270,8 @@
/* load "My Computer" string */
LoadString(hInst, IDS_MY_COMPUTER, buffer,
sizeof(buffer)/sizeof(TCHAR));
- g_pChildWnd = pChildWnd = HeapAlloc(GetProcessHeap(), 0,
sizeof(ChildWnd));
+ g_pChildWnd = pChildWnd = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY, sizeof(ChildWnd));
+
if (!pChildWnd) return 0;
_tcsncpy(pChildWnd->szPath, buffer, MAX_PATH);
pChildWnd->nSplitPos = 250;
_____
Modified: trunk/reactos/subsys/system/regedit/listview.c
--- trunk/reactos/subsys/system/regedit/listview.c 2005-10-17
11:10:11 UTC (rev 18510)
+++ trunk/reactos/subsys/system/regedit/listview.c 2005-10-17
11:49:36 UTC (rev 18511)
@@ -242,6 +242,7 @@
break;
}
}
+ HeapFree(GetProcessHeap(), 0, linfo);
}
static BOOL CreateListColumns(HWND hWndListView)
Show replies by date