Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3c7b08be
Commit
3c7b08be
authored
Aug 24, 2011
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Use the command from the "open" verb.
parent
efe68dcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+3
-2
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
3c7b08be
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment