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
458d27fa
Commit
458d27fa
authored
Jan 31, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added BINDSTATUS_CACHEFILENAMEAVAILABLE support.
parent
e9189df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
binding.c
dlls/urlmon/binding.c
+10
-0
No files found.
dlls/urlmon/binding.c
View file @
458d27fa
...
...
@@ -48,6 +48,8 @@ typedef struct {
DWORD
size
;
BOOL
init
;
HRESULT
hres
;
LPWSTR
cache_file
;
}
stgmed_buf_t
;
typedef
struct
_stgmed_obj_t
stgmed_obj_t
;
...
...
@@ -513,6 +515,7 @@ static ULONG WINAPI StgMedUnk_Release(IUnknown *iface)
if
(
!
ref
)
{
IInternetProtocol_Release
(
This
->
protocol
);
heap_free
(
This
->
cache_file
);
heap_free
(
This
);
URLMON_UnlockModule
();
...
...
@@ -538,6 +541,7 @@ static stgmed_buf_t *create_stgmed_buf(IInternetProtocol *protocol)
ret
->
size
=
0
;
ret
->
init
=
FALSE
;
ret
->
hres
=
S_OK
;
ret
->
cache_file
=
NULL
;
IInternetProtocol_AddRef
(
protocol
);
ret
->
protocol
=
protocol
;
...
...
@@ -1099,6 +1103,8 @@ static HRESULT WINAPI InternetProtocolSink_ReportProgress(IInternetProtocolSink
mime_available
(
This
,
szStatusText
,
FALSE
);
break
;
case
BINDSTATUS_CACHEFILENAMEAVAILABLE
:
heap_free
(
This
->
stgmed_buf
->
cache_file
);
This
->
stgmed_buf
->
cache_file
=
heap_strdupW
(
szStatusText
);
break
;
case
BINDSTATUS_DIRECTBIND
:
This
->
report_mime
=
FALSE
;
...
...
@@ -1134,6 +1140,10 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
sent_begindownloaddata
=
TRUE
;
IBindStatusCallback_OnProgress
(
This
->
callback
,
progress
,
progress_max
,
BINDSTATUS_BEGINDOWNLOADDATA
,
This
->
url
);
if
(
This
->
stgmed_buf
->
cache_file
)
IBindStatusCallback_OnProgress
(
This
->
callback
,
progress
,
progress_max
,
BINDSTATUS_CACHEFILENAMEAVAILABLE
,
This
->
stgmed_buf
->
cache_file
);
}
if
(
This
->
stgmed_buf
->
hres
==
S_FALSE
||
(
bscf
&
BSCF_LASTDATANOTIFICATION
))
{
...
...
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