Author: hbelusca
Date: Sun Dec 27 19:06:16 2015
New Revision: 70444
URL:
http://svn.reactos.org/svn/reactos?rev=70444&view=rev
Log:
[TASKMGR]: Use taskmgr's icon for its run file dialog. Inspired by Wine.
Modified:
trunk/reactos/base/applications/taskmgr/run.c
Modified: trunk/reactos/base/applications/taskmgr/run.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/run.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/run.c [iso-8859-1] Sun Dec 27 19:06:16 2015
@@ -34,16 +34,19 @@
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);