taskmgr: Shell32 is imported, no need to load it again.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-10-18 23:33:29 +02:00 committed by Alexandre Julliard
parent 27431b0f3a
commit 9764b6fe37
1 changed files with 1 additions and 6 deletions

View File

@ -48,13 +48,10 @@ UINT uFlags);
void TaskManager_OnFileNew(void) void TaskManager_OnFileNew(void)
{ {
HMODULE hShell32;
RUNFILEDLG RunFileDlg; RUNFILEDLG RunFileDlg;
OSVERSIONINFOW versionInfo; OSVERSIONINFOW versionInfo;
static const WCHAR wszShell32[] = {'S','H','E','L','L','3','2','.','D','L','L',0};
hShell32 = LoadLibraryW(wszShell32); RunFileDlg = (void *)GetProcAddress(GetModuleHandleW(L"shell32.dll"), (LPCSTR)61);
RunFileDlg = (void *)GetProcAddress(hShell32, (LPCSTR)61);
/* Show "Run..." dialog */ /* Show "Run..." dialog */
if (RunFileDlg) if (RunFileDlg)
@ -76,6 +73,4 @@ void TaskManager_OnFileNew(void)
RunFileDlg(hMainWnd, hIcon, NULL, szTitle, NULL, RFF_CALCDIRECTORY); RunFileDlg(hMainWnd, hIcon, NULL, szTitle, NULL, RFF_CALCDIRECTORY);
} }
} }
FreeLibrary(hShell32);
} }