mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +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
|
CAppInfo *AppInfo; // Only used to find the item in the list, do not access on background thread
|
||||||
UINT TaskId;
|
UINT TaskId;
|
||||||
bool Parse;
|
bool Parse;
|
||||||
WCHAR Location[1];
|
WCHAR Location[ANYSIZE_ARRAY];
|
||||||
|
|
||||||
void Free() { LocalFree(this); }
|
void Free() { LocalFree(this); }
|
||||||
static CAsyncLoadIcon* Queue(HWND hAppsList, CAppInfo &AppInfo, bool Parse);
|
static CAsyncLoadIcon* Queue(HWND hAppsList, CAppInfo &AppInfo, bool Parse);
|
||||||
|
@ -1015,11 +1015,11 @@ AsyncLoadIconProc(LPVOID Param)
|
||||||
CAsyncLoadIcon*
|
CAsyncLoadIcon*
|
||||||
CAsyncLoadIcon::Queue(HWND hAppsList, CAppInfo &AppInfo, bool Parse)
|
CAsyncLoadIcon::Queue(HWND hAppsList, CAppInfo &AppInfo, bool Parse)
|
||||||
{
|
{
|
||||||
ATLASSERT(GetCurrentThreadId() && GetWindowThreadProcessId(hAppsList, NULL));
|
ATLASSERT(GetCurrentThreadId() == GetWindowThreadProcessId(hAppsList, NULL));
|
||||||
CStringW szIconPath;
|
CStringW szIconPath;
|
||||||
if (!AppInfo.RetrieveIcon(szIconPath))
|
if (!AppInfo.RetrieveIcon(szIconPath))
|
||||||
return NULL;
|
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);
|
CAsyncLoadIcon *task = (CAsyncLoadIcon*)LocalAlloc(LMEM_FIXED, sizeof(CAsyncLoadIcon) + cbstr);
|
||||||
if (!task)
|
if (!task)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue