From 3c7b08be2703233408612f241920fc9772e52b7a Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Wed, 24 Aug 2011 04:47:07 +0200 Subject: [PATCH] winemenubuilder: Use the command from the "open" verb. --- programs/winemenubuilder/winemenubuilder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c index e6dc504d8fc..f42f3b18882 100644 --- a/programs/winemenubuilder/winemenubuilder.c +++ b/programs/winemenubuilder/winemenubuilder.c @@ -974,6 +974,7 @@ end: static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream) { + static const WCHAR openW[] = {'o','p','e','n',0}; WCHAR *extension; WCHAR *icon = NULL; WCHAR *comma; @@ -999,7 +1000,7 @@ static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream) } else { - executable = assoc_query(ASSOCSTR_EXECUTABLE, extension, NULL); + executable = assoc_query(ASSOCSTR_EXECUTABLE, extension, openW); if (executable) hr = open_icon(executable, 0, FALSE, ppStream); } @@ -2612,7 +2613,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package if (executableW) openWithIconA = extract_icon(executableW, 0, NULL, FALSE); - friendlyAppNameW = assoc_query(ASSOCSTR_FRIENDLYAPPNAME, extensionW, NULL); + friendlyAppNameW = assoc_query(ASSOCSTR_FRIENDLYAPPNAME, extensionW, openW); if (friendlyAppNameW) { friendlyAppNameA = wchars_to_utf8_chars(friendlyAppNameW); -- 2.11.4.GIT