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
f2aef4cb
Commit
f2aef4cb
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: Correctly handle BINDF_NEEDFILE flag in http protocol.
parent
2b3c115a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
http.c
dlls/urlmon/http.c
+17
-0
No files found.
dlls/urlmon/http.c
View file @
f2aef4cb
...
...
@@ -419,6 +419,8 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
if
(
This
->
grfBINDF
&
BINDF_NOWRITECACHE
)
request_flags
|=
INTERNET_FLAG_NO_CACHE_WRITE
;
if
(
This
->
grfBINDF
&
BINDF_NEEDFILE
)
request_flags
|=
INTERNET_FLAG_NEED_FILE
;
This
->
request
=
HttpOpenRequestW
(
This
->
connect
,
This
->
bind_info
.
dwBindVerb
<
BINDVERB_CUSTOM
?
wszBindVerb
[
This
->
bind_info
.
dwBindVerb
]
:
This
->
bind_info
.
szCustomVerb
,
...
...
@@ -656,6 +658,21 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA
This
->
content_length
=
atoiW
(
content_length
);
}
if
(
This
->
grfBINDF
&
BINDF_NEEDFILE
)
{
WCHAR
cache_file
[
MAX_PATH
];
DWORD
buflen
=
sizeof
(
cache_file
);
if
(
InternetQueryOptionW
(
This
->
request
,
INTERNET_OPTION_DATAFILE_NAME
,
cache_file
,
&
buflen
))
{
IInternetProtocolSink_ReportProgress
(
This
->
protocol_sink
,
BINDSTATUS_CACHEFILENAMEAVAILABLE
,
cache_file
);
}
else
{
FIXME
(
"Could not get cache file
\n
"
);
}
}
This
->
flags
|=
FLAG_FIRST_CONTINUE_COMPLETE
;
}
...
...
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