From d594928f07a97b4f76cb9b3aa9189d7ddd43187b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 27 Dec 2015 19:06:16 +0000 Subject: [PATCH] [TASKMGR]: Use taskmgr's icon for its run file dialog. Inspired by Wine. svn path=/trunk/; revision=70444 --- reactos/base/applications/taskmgr/run.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reactos/base/applications/taskmgr/run.c b/reactos/base/applications/taskmgr/run.c index 2646a66076a..7c9ec61f731 100644 --- a/reactos/base/applications/taskmgr/run.c +++ b/reactos/base/applications/taskmgr/run.c @@ -34,16 +34,19 @@ void TaskManager_OnFileNew(void) LoadStringW(hInst, IDS_CREATENEWTASK, szTitle, sizeof(szTitle) / sizeof(szTitle[0])); LoadStringW(hInst, IDS_CREATENEWTASK_DESC, szText, sizeof(szText) / sizeof(szText[0])); - hShell32 = LoadLibraryW(L"SHELL32.DLL"); - RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (LPCSTR)0x3D); + RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (LPCSTR)61); /* Show "Run..." dialog */ if (RunFileDlg) { + HICON hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_TASKMANAGER)); + /* NOTE - don't check whether running on win 9x or NT, let's just assume that a unicode build only runs on NT */ - RunFileDlg(hMainWnd, 0, NULL, NULL, szText, RFF_CALCDIRECTORY); + RunFileDlg(hMainWnd, hIcon, NULL, NULL, szText, RFF_CALCDIRECTORY); + + DeleteObject(hIcon); } FreeLibrary(hShell32);