mirror of
https://github.com/reactos/reactos.git
synced 2024-06-17 01:51:49 +00:00
Requested changes and a typo
This commit is contained in:
parent
4d6187777d
commit
65b77c67da
|
@ -979,7 +979,7 @@ struct CAsyncLoadIcon {
|
|||
CAppInfo *AppInfo; // Only used to find the item in the list, do not access on background thread
|
||||
UINT TaskId;
|
||||
bool Parse;
|
||||
WCHAR Location[1];
|
||||
WCHAR Location[ANYSIZE_ARRAY];
|
||||
|
||||
void Free() { LocalFree(this); }
|
||||
static CAsyncLoadIcon* Queue(HWND hAppsList, CAppInfo &AppInfo, bool Parse);
|
||||
|
@ -1015,11 +1015,11 @@ AsyncLoadIconProc(LPVOID Param)
|
|||
CAsyncLoadIcon*
|
||||
CAsyncLoadIcon::Queue(HWND hAppsList, CAppInfo &AppInfo, bool Parse)
|
||||
{
|
||||
ATLASSERT(GetCurrentThreadId() && GetWindowThreadProcessId(hAppsList, NULL));
|
||||
ATLASSERT(GetCurrentThreadId() == GetWindowThreadProcessId(hAppsList, NULL));
|
||||
CStringW szIconPath;
|
||||
if (!AppInfo.RetrieveIcon(szIconPath))
|
||||
return NULL;
|
||||
SIZE_T cch = szIconPath.GetLength() + 1, cbstr = cch * sizeof(WCHAR);
|
||||
SIZE_T cbstr = (szIconPath.GetLength() + 1) * sizeof(WCHAR);
|
||||
CAsyncLoadIcon *task = (CAsyncLoadIcon*)LocalAlloc(LMEM_FIXED, sizeof(CAsyncLoadIcon) + cbstr);
|
||||
if (!task)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue