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
a1732549
Commit
a1732549
authored
Mar 22, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Assign to structs instead of using memcpy.
parent
d0986ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
softpub.c
dlls/wintrust/softpub.c
+4
-7
No files found.
dlls/wintrust/softpub.c
View file @
a1732549
...
...
@@ -99,8 +99,7 @@ static BOOL SOFTPUB_GetFileSubject(CRYPT_PROVIDER_DATA *data)
}
else
{
memcpy
(
&
data
->
u
.
pPDSip
->
gSubject
,
data
->
pWintrustData
->
u
.
pFile
->
pgKnownSubject
,
sizeof
(
GUID
));
data
->
u
.
pPDSip
->
gSubject
=
*
data
->
pWintrustData
->
u
.
pFile
->
pgKnownSubject
;
ret
=
TRUE
;
}
TRACE
(
"returning %d
\n
"
,
ret
);
...
...
@@ -284,8 +283,7 @@ HRESULT WINAPI SoftpubLoadMessage(CRYPT_PROVIDER_DATA *data)
* add a cert to it
*/
if
(
data
->
pWintrustData
->
u
.
pCert
->
psftVerifyAsOf
)
memcpy
(
&
data
->
sftSystemTime
,
&
signer
.
sftVerifyAsOf
,
sizeof
(
FILETIME
));
data
->
sftSystemTime
=
signer
.
sftVerifyAsOf
;
else
{
SYSTEMTIME
sysTime
;
...
...
@@ -394,7 +392,7 @@ static BOOL WINTRUST_SaveSigner(CRYPT_PROVIDER_DATA *data, DWORD signerIdx)
CRYPT_PROVIDER_SGNR
sgnr
=
{
sizeof
(
sgnr
),
{
0
}
};
sgnr
.
psSigner
=
signerInfo
;
memcpy
(
&
sgnr
.
sftVerifyAsOf
,
&
data
->
sftSystemTime
,
sizeof
(
FILETIME
))
;
sgnr
.
sftVerifyAsOf
=
data
->
sftSystemTime
;
ret
=
data
->
psPfns
->
pfnAddSgnr2Chain
(
data
,
FALSE
,
signerIdx
,
&
sgnr
);
}
else
...
...
@@ -581,8 +579,7 @@ static void WINTRUST_CreateChainPolicyCreateInfo(
{
chainPara
->
cbSize
=
sizeof
(
CERT_CHAIN_PARA
);
if
(
data
->
pRequestUsage
)
memcpy
(
&
chainPara
->
RequestedUsage
,
data
->
pRequestUsage
,
sizeof
(
CERT_USAGE_MATCH
));
chainPara
->
RequestedUsage
=
*
data
->
pRequestUsage
;
info
->
u
.
cbSize
=
sizeof
(
WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
);
info
->
hChainEngine
=
NULL
;
info
->
pChainPara
=
chainPara
;
...
...
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