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
96ad6881
Commit
96ad6881
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Don't use sizeof in traces to avoid printf format warnings.
parent
a62dca58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
oleproxy.c
dlls/ole32/oleproxy.c
+1
-1
stg_prop.c
dlls/ole32/stg_prop.c
+4
-5
No files found.
dlls/ole32/oleproxy.c
View file @
96ad6881
...
...
@@ -159,7 +159,7 @@ CFStub_Invoke(
ULONG
res
;
if
(
msg
->
cbBuffer
<
sizeof
(
IID
))
{
FIXME
(
"Not enough bytes in buffer (%ld
instead of %d)?
\n
"
,
msg
->
cbBuffer
,
sizeof
(
IID
)
);
FIXME
(
"Not enough bytes in buffer (%ld
)?
\n
"
,
msg
->
cbBuffer
);
return
E_FAIL
;
}
memcpy
(
&
iid
,
msg
->
Buffer
,
sizeof
(
iid
));
...
...
dlls/ole32/stg_prop.c
View file @
96ad6881
...
...
@@ -1159,7 +1159,7 @@ static HRESULT PropertyStorage_ReadHeaderFromStream(IStream *stm,
{
if
(
count
!=
sizeof
(
buf
))
{
WARN
(
"read
%ld, expected %d
\n
"
,
count
,
sizeof
(
buf
)
);
WARN
(
"read
only %ld
\n
"
,
count
);
hr
=
STG_E_INVALIDHEADER
;
}
else
...
...
@@ -1194,7 +1194,7 @@ static HRESULT PropertyStorage_ReadFmtIdOffsetFromStream(IStream *stm,
{
if
(
count
!=
sizeof
(
buf
))
{
WARN
(
"read
%ld, expected %d
\n
"
,
count
,
sizeof
(
buf
)
);
WARN
(
"read
only %ld
\n
"
,
count
);
hr
=
STG_E_INVALIDHEADER
;
}
else
...
...
@@ -1223,7 +1223,7 @@ static HRESULT PropertyStorage_ReadSectionHeaderFromStream(IStream *stm,
{
if
(
count
!=
sizeof
(
buf
))
{
WARN
(
"read
%ld, expected %d
\n
"
,
count
,
sizeof
(
buf
)
);
WARN
(
"read
only %ld
\n
"
,
count
);
hr
=
STG_E_INVALIDHEADER
;
}
else
...
...
@@ -1325,8 +1325,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
/* The section size includes the section header, so check it */
if
(
sectionHdr
.
cbSection
<
sizeof
(
PROPERTYSECTIONHEADER
))
{
WARN
(
"section header too small, got %ld, expected at least %d
\n
"
,
sectionHdr
.
cbSection
,
sizeof
(
PROPERTYSECTIONHEADER
));
WARN
(
"section header too small, got %ld
\n
"
,
sectionHdr
.
cbSection
);
hr
=
STG_E_INVALIDHEADER
;
goto
end
;
}
...
...
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