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
75481bde
Commit
75481bde
authored
Jul 24, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Commit URL cache entry when cache file is closed.
parent
54bdf622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
15 deletions
+25
-15
http.c
dlls/wininet/http.c
+25
-15
No files found.
dlls/wininet/http.c
View file @
75481bde
...
...
@@ -1539,6 +1539,20 @@ static DWORD HTTP_ResolveName(http_request_t *lpwhr)
return
ERROR_SUCCESS
;
}
static
BOOL
HTTP_GetRequestURL
(
http_request_t
*
req
,
LPWSTR
buf
)
{
LPHTTPHEADERW
host_header
;
static
const
WCHAR
formatW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
'%'
,
's'
,
0
};
host_header
=
HTTP_GetHeader
(
req
,
hostW
);
if
(
!
host_header
)
return
FALSE
;
sprintfW
(
buf
,
formatW
,
host_header
->
lpszValue
,
req
->
lpszPath
);
/* FIXME */
return
TRUE
;
}
/***********************************************************************
* HTTPREQ_Destroy (internal)
...
...
@@ -1553,9 +1567,19 @@ static void HTTPREQ_Destroy(object_header_t *hdr)
TRACE
(
"
\n
"
);
if
(
lpwhr
->
hCacheFile
)
if
(
lpwhr
->
hCacheFile
)
{
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
];
FILETIME
ft
;
CloseHandle
(
lpwhr
->
hCacheFile
);
memset
(
&
ft
,
0
,
sizeof
(
FILETIME
));
if
(
HTTP_GetRequestURL
(
lpwhr
,
url
))
{
CommitUrlCacheEntryW
(
url
,
lpwhr
->
lpszCacheFile
,
ft
,
ft
,
NORMAL_CACHE_ENTRY
,
NULL
,
0
,
NULL
,
0
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszCacheFile
);
DeleteCriticalSection
(
&
lpwhr
->
read_section
);
...
...
@@ -1606,20 +1630,6 @@ static void HTTPREQ_CloseConnection(object_header_t *hdr)
INTERNET_STATUS_CONNECTION_CLOSED
,
0
,
0
);
}
static
BOOL
HTTP_GetRequestURL
(
http_request_t
*
req
,
LPWSTR
buf
)
{
LPHTTPHEADERW
host_header
;
static
const
WCHAR
formatW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
'%'
,
's'
,
0
};
host_header
=
HTTP_GetHeader
(
req
,
hostW
);
if
(
!
host_header
)
return
FALSE
;
sprintfW
(
buf
,
formatW
,
host_header
->
lpszValue
,
req
->
lpszPath
);
/* FIXME */
return
TRUE
;
}
static
BOOL
HTTP_KeepAlive
(
http_request_t
*
lpwhr
)
{
WCHAR
szVersion
[
10
];
...
...
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