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
2d323430
Commit
2d323430
authored
Mar 03, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Mar 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Default to 10 minutes expiration for cache entries.
parent
ab16c75c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
http.c
dlls/wininet/http.c
+6
-5
No files found.
dlls/wininet/http.c
View file @
2d323430
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
#include "winbase.h"
#include "winbase.h"
#include "wininet.h"
#include "wininet.h"
#include "winerror.h"
#include "winerror.h"
#include "winternl.h"
#define NO_SHLWAPI_STREAM
#define NO_SHLWAPI_STREAM
#define NO_SHLWAPI_REG
#define NO_SHLWAPI_REG
#define NO_SHLWAPI_STRFCNS
#define NO_SHLWAPI_STRFCNS
...
@@ -3774,13 +3775,13 @@ static void HTTP_ProcessExpires(http_request_t *request)
...
@@ -3774,13 +3775,13 @@ static void HTTP_ProcessExpires(http_request_t *request)
}
}
if
(
!
expirationFound
)
if
(
!
expirationFound
)
{
{
ULARGE_INTEGER
f
t
;
LARGE_INTEGER
t
;
/* With no known age, default to 10 minutes until expiration. */
/* With no known age, default to 10 minutes until expiration. */
GetSystemTimeAsFileTime
((
FILETIME
*
)
&
ft
);
NtQuerySystemTime
(
&
t
);
ft
.
QuadPart
+=
10
*
60
*
10000000
;
t
.
QuadPart
+=
10
*
60
*
(
ULONGLONG
)
10000000
;
request
->
expires
.
dwLowDateTime
=
f
t
.
u
.
LowPart
;
request
->
expires
.
dwLowDateTime
=
t
.
u
.
LowPart
;
request
->
expires
.
dwHighDateTime
=
f
t
.
u
.
HighPart
;
request
->
expires
.
dwHighDateTime
=
t
.
u
.
HighPart
;
}
}
}
}
...
...
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