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
51e1a088
Commit
51e1a088
authored
Feb 03, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Return S_FALSE if no data is returned in IInternetProtocol::Read.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a8cfe2ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
protocol.c
dlls/inetcomm/protocol.c
+9
-1
mimeole.c
dlls/inetcomm/tests/mimeole.c
+2
-0
No files found.
dlls/inetcomm/protocol.c
View file @
51e1a088
...
...
@@ -564,10 +564,18 @@ static HRESULT WINAPI MimeHtmlProtocol_Resume(IInternetProtocol *iface)
static
HRESULT
WINAPI
MimeHtmlProtocol_Read
(
IInternetProtocol
*
iface
,
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
{
MimeHtmlProtocol
*
This
=
impl_from_IInternetProtocol
(
iface
);
ULONG
read
=
0
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p %u %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
return
IStream_Read
(
This
->
stream
,
pv
,
cb
,
pcbRead
);
hres
=
IStream_Read
(
This
->
stream
,
pv
,
cb
,
&
read
);
if
(
pcbRead
)
*
pcbRead
=
read
;
if
(
hres
!=
S_OK
)
return
hres
;
return
read
?
S_OK
:
S_FALSE
;
}
static
HRESULT
WINAPI
MimeHtmlProtocol_Seek
(
IInternetProtocol
*
iface
,
LARGE_INTEGER
dlibMove
,
...
...
dlls/inetcomm/tests/mimeole.c
View file @
51e1a088
...
...
@@ -1368,6 +1368,8 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR
buf
[
read
]
=
0
;
ok
(
!
strcmp
(
buf
,
current_binding_test
->
data
),
"unexpected data: %s
\n
"
,
buf
);
hres
=
IInternetProtocol_Read
(
current_binding_protocol
,
buf
,
sizeof
(
buf
),
&
read
);
ok
(
hres
==
S_FALSE
,
"Read failed: %08x
\n
"
,
hres
);
return
S_OK
;
}
...
...
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