mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
added missing HEAP_ZERO_MEMORY
added missing HeapFree svn path=/trunk/; revision=18511
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user