Commit 3c7b08be authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

winemenubuilder: Use the command from the "open" verb.

parent efe68dcd
...@@ -974,6 +974,7 @@ end: ...@@ -974,6 +974,7 @@ end:
static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream) static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream)
{ {
static const WCHAR openW[] = {'o','p','e','n',0};
WCHAR *extension; WCHAR *extension;
WCHAR *icon = NULL; WCHAR *icon = NULL;
WCHAR *comma; WCHAR *comma;
...@@ -999,7 +1000,7 @@ static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream) ...@@ -999,7 +1000,7 @@ static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream)
} }
else else
{ {
executable = assoc_query(ASSOCSTR_EXECUTABLE, extension, NULL); executable = assoc_query(ASSOCSTR_EXECUTABLE, extension, openW);
if (executable) if (executable)
hr = open_icon(executable, 0, FALSE, ppStream); hr = open_icon(executable, 0, FALSE, ppStream);
} }
...@@ -2612,7 +2613,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package ...@@ -2612,7 +2613,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
if (executableW) if (executableW)
openWithIconA = extract_icon(executableW, 0, NULL, FALSE); openWithIconA = extract_icon(executableW, 0, NULL, FALSE);
friendlyAppNameW = assoc_query(ASSOCSTR_FRIENDLYAPPNAME, extensionW, NULL); friendlyAppNameW = assoc_query(ASSOCSTR_FRIENDLYAPPNAME, extensionW, openW);
if (friendlyAppNameW) if (friendlyAppNameW)
{ {
friendlyAppNameA = wchars_to_utf8_chars(friendlyAppNameW); friendlyAppNameA = wchars_to_utf8_chars(friendlyAppNameW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment