added missing HEAP_ZERO_MEMORY

added missing HeapFree

svn path=/trunk/; revision=18511
This commit is contained in:
Christoph von Wittich 2005-10-17 11:49:36 +00:00
parent a1651b5787
commit f9f5eb9f29
2 changed files with 3 additions and 1 deletions

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

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