From ca12410f46d6fa85f2da8917ce964795cc573b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Zalewski?= Date: Mon, 30 Jun 2008 18:15:51 +0200 Subject: [PATCH] taskmgr: Use own icon in Run dialog. --- programs/taskmgr/run.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/taskmgr/run.c b/programs/taskmgr/run.c index efb9fb0da55..1954e9f758c 100644 --- a/programs/taskmgr/run.c +++ b/programs/taskmgr/run.c @@ -61,6 +61,7 @@ void TaskManager_OnFileNew(void) /* Show "Run..." dialog */ if (RunFileDlg) { + HICON hIcon = LoadIconW(GetModuleHandleW(NULL), MAKEINTRESOURCEW(IDI_TASKMANAGER)); versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&versionInfo); @@ -68,13 +69,13 @@ void TaskManager_OnFileNew(void) { WCHAR wTitle[64]; LoadStringW(GetModuleHandleW(NULL), IDS_RUNDLG_CAPTION, wTitle, 64); - RunFileDlg(hMainWnd, 0, NULL, (LPCSTR)wTitle, NULL, RFF_CALCDIRECTORY); + RunFileDlg(hMainWnd, hIcon, NULL, (LPCSTR)wTitle, NULL, RFF_CALCDIRECTORY); } else { char szTitle[64]; LoadStringA(GetModuleHandleW(NULL), IDS_RUNDLG_CAPTION, szTitle, 64); - RunFileDlg(hMainWnd, 0, NULL, szTitle, NULL, RFF_CALCDIRECTORY); + RunFileDlg(hMainWnd, hIcon, NULL, szTitle, NULL, RFF_CALCDIRECTORY); } }