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
6f0ff149
Commit
6f0ff149
authored
Jan 03, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Improve traces.
Add some traces to make it easier to debug icon generation problems.
parent
6f7b62b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+14
-5
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
6f0ff149
...
...
@@ -162,7 +162,10 @@ static BOOL SaveIconResAsXPM(const BITMAPINFO *pIcon, const char *szXPMFileName,
return
FALSE
;
if
(
!
(
fXPMFile
=
fopen
(
szXPMFileName
,
"w"
)))
{
WINE_TRACE
(
"unable to open '%s' for writing: %s
\n
"
,
szXPMFileName
,
strerror
(
errno
));
return
FALSE
;
}
i
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
commentW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
comment
=
malloc
(
i
);
...
...
@@ -361,7 +364,10 @@ static int ExtractFromICO(LPCWSTR szFileName, const char *szXPMFileName)
filename
=
wine_get_unix_file_name
(
szFileName
);
if
(
!
(
fICOFile
=
fopen
(
filename
,
"r"
)))
{
WINE_TRACE
(
"unable to open '%s' for reading: %s
\n
"
,
filename
,
strerror
(
errno
));
goto
error1
;
}
if
(
fread
(
&
iconDir
,
sizeof
(
ICONDIR
),
1
,
fICOFile
)
!=
1
)
goto
error2
;
...
...
@@ -487,15 +493,18 @@ static char *extract_icon( LPCWSTR path, int index)
if
(
!
iconsdir
)
{
WCHAR
path
[
MAX_PATH
];
if
(
GetTempPathW
(
MAX_PATH
,
path
))
iconsdir
=
wine_get_unix_file_name
(
path
);
if
(
GetTempPathW
(
MAX_PATH
,
path
))
iconsdir
=
wine_get_unix_file_name
(
path
);
if
(
!
iconsdir
)
{
WINE_TRACE
(
"no IconsDir
\n
"
);
return
NULL
;
/* No icon created */
}
}
if
(
!
iconsdir
)
return
NULL
;
/* No icon created */
if
(
!*
iconsdir
)
{
WINE_TRACE
(
"icon generation disabled
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
iconsdir
);
return
NULL
;
/* No icon created */
}
...
...
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