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
87242c5f
Commit
87242c5f
authored
Oct 06, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Report error on synchronous bindings that don't have a cache file and…
urlmon: Report error on synchronous bindings that don't have a cache file and are not read in callback.
parent
a7852b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
binding.c
dlls/urlmon/binding.c
+8
-1
No files found.
dlls/urlmon/binding.c
View file @
87242c5f
...
...
@@ -76,6 +76,7 @@ typedef enum {
#define BINDING_LOCKED 0x0001
#define BINDING_STOPPED 0x0002
#define BINDING_OBJAVAIL 0x0004
#define BINDING_ABORTED 0x0008
struct
Binding
{
const
IBindingVtbl
*
lpBindingVtbl
;
...
...
@@ -682,6 +683,10 @@ static HRESULT stgmed_stream_get_result(stgmed_obj_t *obj, DWORD bindf, void **r
{
ProtocolStream
*
stream
=
(
ProtocolStream
*
)
obj
;
if
(
!
(
bindf
&
BINDF_ASYNCHRONOUS
)
&&
stream
->
buf
->
file
==
INVALID_HANDLE_VALUE
&&
(
stream
->
buf
->
hres
!=
S_FALSE
||
stream
->
buf
->
size
))
return
INET_E_DATA_NOT_AVAILABLE
;
IStream_AddRef
(
STREAM
(
stream
));
*
result
=
STREAM
(
stream
);
return
S_OK
;
...
...
@@ -1573,8 +1578,10 @@ HRESULT bind_to_storage(LPCWSTR url, IBindCtx *pbc, REFIID riid, void **ppv)
IInternetProtocol_UnlockRequest
(
binding
->
protocol
);
hres
=
binding
->
stgmed_obj
->
vtbl
->
get_result
(
binding
->
stgmed_obj
,
binding
->
bindf
,
ppv
);
}
else
{
}
else
if
(
binding
->
bindf
&
BINDF_ASYNCHRONOUS
)
{
hres
=
MK_S_ASYNCHRONOUS
;
}
else
{
hres
=
FAILED
(
binding
->
hres
)
?
binding
->
hres
:
S_OK
;
}
IBinding_Release
(
BINDING
(
binding
));
...
...
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