added missing HEAP_ZERO_MEMORY
authorChristoph von Wittich <christoph_vw@reactos.org>
Mon, 17 Oct 2005 11:49:36 +0000 (11:49 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Mon, 17 Oct 2005 11:49:36 +0000 (11:49 +0000)
added missing HeapFree

svn path=/trunk/; revision=18511

reactos/subsys/system/regedit/childwnd.c
reactos/subsys/system/regedit/listview.c

index d4a6a9d..d98beda 100644 (file)
@@ -270,7 +270,8 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
         /* 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;
index 84094bb..ffd928d 100644 (file)
@@ -242,6 +242,7 @@ static void AddEntryToList(HWND hwndLV, LPTSTR Name, DWORD dwValType, void* ValB
             break;
         }
     }
+       HeapFree(GetProcessHeap(), 0, linfo);
 }
 
 static BOOL CreateListColumns(HWND hWndListView)