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
d12ca0dd
Commit
d12ca0dd
authored
Jul 15, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Use RTL_SIZEOF_THROUGH_FIELD.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bdcddf02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+10
-11
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
d12ca0dd
...
...
@@ -521,13 +521,13 @@ static BOOL CRYPT_GetObjectFromCache(LPCWSTR pszURL, PCRYPT_BLOB_ARRAY pObject,
{
if
((
ret
=
CRYPT_GetObjectFromFile
(
hFile
,
pObject
)))
{
if
(
pAuxInfo
&&
pAuxInfo
->
cbSize
>=
offsetof
(
CRYPT_RETRIEVE_AUX_INFO
,
pLastSyncTime
)
+
sizeof
(
PFILETIME
)
&&
pAuxInfo
->
pLastSyncTime
)
if
(
pAuxInfo
&&
pAuxInfo
->
cbSize
>=
RTL_SIZEOF_THROUGH_FIELD
(
CRYPT_RETRIEVE_AUX_INFO
,
pLastSyncTime
)
&&
pAuxInfo
->
pLastSyncTime
)
{
memcpy
(
pAuxInfo
->
pLastSyncTime
,
&
pCacheInfo
->
LastSyncTime
,
sizeof
(
FILETIME
));
}
}
CloseHandle
(
hFile
);
}
...
...
@@ -1028,12 +1028,12 @@ static BOOL WINAPI File_RetrieveEncodedObjectW(LPCWSTR pszURL,
{
if
((
ret
=
CRYPT_GetObjectFromFile
(
hFile
,
pObject
)))
{
if
(
pAuxInfo
&&
pAuxInfo
->
cbSize
>=
offsetof
(
CRYPT_RETRIEVE_AUX_INFO
,
pLastSyncTime
)
+
sizeof
(
PFILETIME
)
&&
pAuxInfo
->
pLastSyncTime
)
if
(
pAuxInfo
&&
pAuxInfo
->
cbSize
>=
RTL_SIZEOF_THROUGH_FIELD
(
CRYPT_RETRIEVE_AUX_INFO
,
pLastSyncTime
)
&&
pAuxInfo
->
pLastSyncTime
)
{
GetFileTime
(
hFile
,
NULL
,
NULL
,
pAuxInfo
->
pLastSyncTime
);
}
}
CloseHandle
(
hFile
);
}
...
...
@@ -1557,9 +1557,8 @@ static DWORD verify_cert_revocation_from_dist_points_ext(
&
cbUrlArray
,
NULL
,
NULL
);
if
(
dwFlags
&
CERT_VERIFY_CACHE_ONLY_BASED_REVOCATION
)
retrievalFlags
|=
CRYPT_CACHE_ONLY_RETRIEVAL
;
if
(
dwFlags
&
CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG
&&
pRevPara
&&
pRevPara
->
cbSize
>=
offsetof
(
CERT_REVOCATION_PARA
,
dwUrlRetrievalTimeout
)
+
sizeof
(
DWORD
))
if
((
dwFlags
&
CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG
)
&&
pRevPara
&&
pRevPara
->
cbSize
>=
RTL_SIZEOF_THROUGH_FIELD
(
CERT_REVOCATION_PARA
,
dwUrlRetrievalTimeout
))
{
startTime
=
GetTickCount
();
endTime
=
startTime
+
pRevPara
->
dwUrlRetrievalTimeout
;
...
...
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