Commit ca12410f authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

taskmgr: Use own icon in Run dialog.

parent ca854add
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment