winefile: Use own icon in run dialog.

Signed-off-by: Jared Smudde <computerwhiz02@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jared Smudde 2015-12-29 13:22:00 -06:00 committed by Alexandre Julliard
parent b33fab40d3
commit 6a9b4d1667
1 changed files with 2 additions and 1 deletions

View File

@ -1634,9 +1634,10 @@ static void WineFile_OnRun( HWND hwnd )
static const WCHAR shell32_dll[] = {'S','H','E','L','L','3','2','.','D','L','L',0};
void (WINAPI *pRunFileDlgAW )(HWND, HICON, LPWSTR, LPWSTR, LPWSTR, DWORD);
HMODULE hshell = GetModuleHandleW( shell32_dll );
HICON hIcon = LoadIconW(Globals.hInstance, MAKEINTRESOURCEW(IDI_WINEFILE));
pRunFileDlgAW = (void*)GetProcAddress(hshell, (LPCSTR)61);
if (pRunFileDlgAW) pRunFileDlgAW( hwnd, 0, NULL, NULL, NULL, RFF_NODEFAULT);
if (pRunFileDlgAW) pRunFileDlgAW( hwnd, hIcon, NULL, NULL, NULL, RFF_NODEFAULT);
}
static INT_PTR CALLBACK DestinationDlgProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)