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
031e1ae4
Commit
031e1ae4
authored
Jun 18, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Check pointer before use.
parent
3bacdaf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
stream.c
dlls/urlmon/tests/stream.c
+8
-6
No files found.
dlls/urlmon/tests/stream.c
View file @
031e1ae4
...
...
@@ -294,7 +294,7 @@ static void create_file(void)
static
void
test_URLOpenBlockingStreamW
(
void
)
{
HRESULT
hr
;
IStream
*
pStream
;
IStream
*
pStream
=
NULL
;
char
buffer
[
256
];
hr
=
URLOpenBlockingStreamW
(
NULL
,
NULL
,
&
pStream
,
0
,
&
BindStatusCallback
);
...
...
@@ -324,12 +324,14 @@ static void test_URLOpenBlockingStreamW(void)
CHECK_CALLED
(
OnStopBinding
);
ok
(
pStream
!=
NULL
,
"pStream is NULL
\n
"
);
if
(
pStream
)
{
hr
=
IStream_Read
(
pStream
,
buffer
,
sizeof
(
buffer
),
NULL
);
ok
(
hr
==
S_OK
,
"IStream_Read failed with error 0x%08x
\n
"
,
hr
);
ok
(
!
memcmp
(
buffer
,
szHtmlDoc
,
sizeof
(
szHtmlDoc
)
-
1
),
"read data differs from file
\n
"
);
hr
=
IStream_Read
(
pStream
,
buffer
,
sizeof
(
buffer
),
NULL
);
ok
(
hr
==
S_OK
,
"IStream_Read failed with error 0x%08x
\n
"
,
hr
);
ok
(
!
memcmp
(
buffer
,
szHtmlDoc
,
sizeof
(
szHtmlDoc
)
-
1
),
"read data differs from file
\n
"
);
IStream_Release
(
pStream
);
IStream_Release
(
pStream
);
}
}
static
void
test_URLOpenStreamW
(
void
)
...
...
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