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
79808429
Commit
79808429
authored
Jan 23, 2013
by
Sergey Guralnik
Committed by
Alexandre Julliard
Jan 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Try to wait for creating icon files.
parent
1dc3ef51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+13
-4
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
79808429
...
@@ -1055,10 +1055,19 @@ static HRESULT open_icon(LPCWSTR filename, int index, BOOL bWait, IStream **ppSt
...
@@ -1055,10 +1055,19 @@ static HRESULT open_icon(LPCWSTR filename, int index, BOOL bWait, IStream **ppSt
hr
=
open_module_icon
(
filename
,
index
,
ppStream
);
hr
=
open_module_icon
(
filename
,
index
,
ppStream
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
{
{
static
const
WCHAR
dot_icoW
[]
=
{
'.'
,
'i'
,
'c'
,
'o'
,
0
};
if
(
bWait
&&
hr
==
HRESULT_FROM_WIN32
(
ERROR_MOD_NOT_FOUND
))
int
len
=
strlenW
(
filename
);
{
if
(
len
>=
4
&&
strcmpiW
(
&
filename
[
len
-
4
],
dot_icoW
)
==
0
)
WINE_WARN
(
"Can't find file: %s, give a chance to parent process to create it
\n
"
,
hr
=
SHCreateStreamOnFileW
(
filename
,
STGM_READ
,
ppStream
);
wine_dbgstr_w
(
filename
));
return
hr
;
}
else
{
static
const
WCHAR
dot_icoW
[]
=
{
'.'
,
'i'
,
'c'
,
'o'
,
0
};
int
len
=
strlenW
(
filename
);
if
(
len
>=
4
&&
strcmpiW
(
&
filename
[
len
-
4
],
dot_icoW
)
==
0
)
hr
=
SHCreateStreamOnFileW
(
filename
,
STGM_READ
,
ppStream
);
}
}
}
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
hr
=
open_file_type_icon
(
filename
,
ppStream
);
hr
=
open_file_type_icon
(
filename
,
ppStream
);
...
...
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