Jared Smudde : winefile: Use own icon in run dialog.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Dec 30 18:33:43 CST 2015
Module: wine
Branch: master
Commit: 6a9b4d16673fc6435a037f19f1df3e2d0123de5a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a9b4d16673fc6435a037f19f1df3e2d0123de5a
Author: Jared Smudde <computerwhiz02 at hotmail.com>
Date: Tue Dec 29 13:22:00 2015 -0600
winefile: Use own icon in run dialog.
Signed-off-by: Jared Smudde <computerwhiz02 at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winefile/winefile.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 7046ad0..34830c5 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -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)
More information about the wine-cvs
mailing list