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
97b8c570
Commit
97b8c570
authored
Jan 18, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize streamData and check on failure to read desired data from
stream.
parent
ca5b2013
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+7
-1
No files found.
dlls/comctl32/comctl32undoc.c
View file @
97b8c570
...
...
@@ -93,6 +93,11 @@ DPA_LoadStream (HDPA *phDpa, DPALOADPROC loadProc, IStream *pStream, LPARAM lPar
position
.
s
.
LowPart
=
0
;
position
.
s
.
HighPart
=
0
;
/*
* Zero out our streamData
*/
memset
(
&
streamData
,
0
,
sizeof
(
STREAMDATA
));
errCode
=
IStream_Seek
(
pStream
,
position
,
STREAM_SEEK_CUR
,
&
newPosition
);
if
(
errCode
!=
S_OK
)
return
errCode
;
...
...
@@ -104,7 +109,8 @@ DPA_LoadStream (HDPA *phDpa, DPALOADPROC loadProc, IStream *pStream, LPARAM lPar
FIXME
(
"dwSize=%lu dwData2=%lu dwItems=%lu
\n
"
,
streamData
.
dwSize
,
streamData
.
dwData2
,
streamData
.
dwItems
);
if
(
lParam
<
sizeof
(
STREAMDATA
)
||
if
(
ulRead
<
sizeof
(
STREAMDATA
)
||
lParam
<
sizeof
(
STREAMDATA
)
||
streamData
.
dwSize
<
sizeof
(
STREAMDATA
)
||
streamData
.
dwData2
<
1
)
{
errCode
=
E_FAIL
;
...
...
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