mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
added missing HEAP_ZERO_MEMORY
added missing HeapFree svn path=/trunk/; revision=18511
This commit is contained in:
parent
a1651b5787
commit
f9f5eb9f29
2 changed files with 3 additions and 1 deletions
|
@ -270,7 +270,8 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
/* load "My Computer" string */
|
/* load "My Computer" string */
|
||||||
LoadString(hInst, IDS_MY_COMPUTER, buffer, sizeof(buffer)/sizeof(TCHAR));
|
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;
|
if (!pChildWnd) return 0;
|
||||||
_tcsncpy(pChildWnd->szPath, buffer, MAX_PATH);
|
_tcsncpy(pChildWnd->szPath, buffer, MAX_PATH);
|
||||||
pChildWnd->nSplitPos = 250;
|
pChildWnd->nSplitPos = 250;
|
||||||
|
|
|
@ -242,6 +242,7 @@ static void AddEntryToList(HWND hwndLV, LPTSTR Name, DWORD dwValType, void* ValB
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
HeapFree(GetProcessHeap(), 0, linfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL CreateListColumns(HWND hWndListView)
|
static BOOL CreateListColumns(HWND hWndListView)
|
||||||
|
|
Loading…
Reference in a new issue