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
c3a23a99
Commit
c3a23a99
authored
Apr 01, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Handle SystemTimeToFileTime failure in HTTP_RetrieveEncodedObjectW.
parent
ef4db477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+4
-10
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
c3a23a99
...
@@ -957,18 +957,12 @@ static BOOL WINAPI HTTP_RetrieveEncodedObjectW(LPCWSTR pszURL,
...
@@ -957,18 +957,12 @@ static BOOL WINAPI HTTP_RetrieveEncodedObjectW(LPCWSTR pszURL,
if
(
ret
&&
!
(
dwRetrievalFlags
&
CRYPT_DONT_CACHE_RESULT
))
if
(
ret
&&
!
(
dwRetrievalFlags
&
CRYPT_DONT_CACHE_RESULT
))
{
{
SYSTEMTIME
st
;
SYSTEMTIME
st
;
FILETIME
ft
;
DWORD
len
=
sizeof
(
st
);
DWORD
len
=
sizeof
(
st
);
if
(
HttpQueryInfoW
(
hHttp
,
if
(
HttpQueryInfoW
(
hHttp
,
HTTP_QUERY_EXPIRES
|
HTTP_QUERY_FLAG_SYSTEMTIME
,
HTTP_QUERY_EXPIRES
|
HTTP_QUERY_FLAG_SYSTEMTIME
,
&
st
,
&
st
,
&
len
,
NULL
)
&&
SystemTimeToFileTime
(
&
st
,
&
ft
))
&
len
,
NULL
))
CRYPT_CacheURL
(
pszURL
,
pObject
,
dwRetrievalFlags
,
ft
);
{
FILETIME
ft
;
SystemTimeToFileTime
(
&
st
,
&
ft
);
CRYPT_CacheURL
(
pszURL
,
pObject
,
dwRetrievalFlags
,
ft
);
}
}
}
InternetCloseHandle
(
hHttp
);
InternetCloseHandle
(
hHttp
);
}
}
...
...
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