Skip to content

Commit 5fe37c9

Browse files
committed
Fix icon retrieval for apps like paint.net
1 parent 157ad51 commit 5fe37c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taskpage.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ HRESULT CTaskInfo::SetData(HWND hwnd,
16061606
m_hSmallIcon = NULL;
16071607
m_hLargeIcon = NULL;
16081608

1609-
if (!SendMessageTimeout(hwnd, WM_GETICON, 0, 0,
1609+
if (!SendMessageTimeout(hwnd, WM_GETICON, 2, 0,
16101610
SMTO_BLOCK | SMTO_ABORTIFHUNG, ICON_FETCH_TIMEOUT, (PULONG_PTR) &m_hSmallIcon)
16111611
|| NULL == m_hSmallIcon)
16121612
{

0 commit comments

Comments
 (0)