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
c425045a
Commit
c425045a
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevdm: Don't use sizeof in traces to avoid printf format warnings.
parent
46a5f913
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
winevdm.c
programs/winevdm/winevdm.c
+1
-3
No files found.
programs/winevdm/winevdm.c
View file @
c425045a
...
@@ -119,9 +119,7 @@ static BOOL read_pif_file( HANDLE hFile, char *progname, char *title,
...
@@ -119,9 +119,7 @@ static BOOL read_pif_file( HANDLE hFile, char *progname, char *title,
pifhead_t
pifheader
;
pifhead_t
pifheader
;
if
(
!
GetFileSizeEx
(
hFile
,
&
filesize
)
||
if
(
!
GetFileSizeEx
(
hFile
,
&
filesize
)
||
filesize
.
QuadPart
<
(
sizeof
(
pifhead_t
)
+
sizeof
(
recordhead_t
)))
{
filesize
.
QuadPart
<
(
sizeof
(
pifhead_t
)
+
sizeof
(
recordhead_t
)))
{
WINE_ERR
(
"Invalid pif file: size error %d must be >= %d
\n
"
,
WINE_ERR
(
"Invalid pif file: size error %d
\n
"
,
(
int
)
filesize
.
QuadPart
);
(
int
)
filesize
.
QuadPart
,
(
sizeof
(
pifhead_t
)
+
sizeof
(
recordhead_t
)));
return
FALSE
;
return
FALSE
;
}
}
SetFilePointer
(
hFile
,
0
,
NULL
,
FILE_BEGIN
);
SetFilePointer
(
hFile
,
0
,
NULL
,
FILE_BEGIN
);
...
...
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