Commit 2d323430 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wininet: Default to 10 minutes expiration for cache entries.

parent ab16c75c
...@@ -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 ft; 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 = ft.u.LowPart; request->expires.dwLowDateTime = t.u.LowPart;
request->expires.dwHighDateTime = ft.u.HighPart; request->expires.dwHighDateTime = t.u.HighPart;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment