Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3563511a
Commit
3563511a
authored
Feb 22, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When running a second time, don't fail if we can't extract an icon.
parent
2c2db4b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+9
-4
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
3563511a
...
...
@@ -737,7 +737,7 @@ static BOOL GetLinkLocation( LPCWSTR linkfile, DWORD *loc )
return
FALSE
;
}
static
BOOL
InvokeShellLinker
(
IShellLinkW
*
sl
,
LPCWSTR
link
)
static
BOOL
InvokeShellLinker
(
IShellLinkW
*
sl
,
LPCWSTR
link
,
BOOL
bAgain
)
{
char
*
link_name
=
NULL
,
*
icon_name
=
NULL
,
*
work_dir
=
NULL
;
char
*
escaped_path
=
NULL
,
*
escaped_args
=
NULL
,
*
escaped_description
=
NULL
;
...
...
@@ -800,8 +800,12 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
/* fail - try once again at reboot time */
if
(
!
icon_name
)
{
if
(
bAgain
)
{
WINE_WARN
(
"Unable to extract icon, deferring.
\n
"
);
goto
cleanup
;
}
WINE_ERR
(
"failed to extract icon.
\n
"
);
return
FALSE
;
}
/* check the path */
...
...
@@ -835,7 +839,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
if
(
!
link_name
)
{
WINE_ERR
(
"Couldn't clean up link name %s
\n
"
,
wine_dbgstr_w
(
link
));
return
FALSE
;
goto
cleanup
;
}
/* escape the path and parameters */
...
...
@@ -847,6 +851,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
in_desktop_dir
(
csidl
),
escaped_args
,
icon_name
,
work_dir
?
work_dir
:
""
,
escaped_description
);
cleanup:
HeapFree
(
GetProcessHeap
(),
0
,
icon_name
);
HeapFree
(
GetProcessHeap
(),
0
,
work_dir
);
HeapFree
(
GetProcessHeap
(),
0
,
link_name
);
...
...
@@ -915,7 +920,7 @@ static BOOL Process_Link( LPCWSTR linkname, BOOL bAgain )
/* If something fails (eg. Couldn't extract icon)
* defer this menu entry to reboot via runonce
*/
if
(
!
InvokeShellLinker
(
sl
,
fullname
)
&&
bAgain
)
if
(
!
InvokeShellLinker
(
sl
,
fullname
,
bAgain
)
&&
bAgain
)
DeferToRunOnce
(
fullname
);
else
WINE_TRACE
(
"Success.
\n
"
);
...
...
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