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
2f836649
Commit
2f836649
authored
Mar 01, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Mar 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Correct GenericChainCertificateTrust's handling of…
wintrust: Correct GenericChainCertificateTrust's handling of WINTRUST_CreateChainForSigner's return value.
parent
24ff7048
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
softpub.c
dlls/wintrust/softpub.c
+10
-15
No files found.
dlls/wintrust/softpub.c
View file @
2f836649
...
@@ -845,7 +845,7 @@ HRESULT WINAPI WintrustCertificateTrust(CRYPT_PROVIDER_DATA *data)
...
@@ -845,7 +845,7 @@ HRESULT WINAPI WintrustCertificateTrust(CRYPT_PROVIDER_DATA *data)
HRESULT
WINAPI
GenericChainCertificateTrust
(
CRYPT_PROVIDER_DATA
*
data
)
HRESULT
WINAPI
GenericChainCertificateTrust
(
CRYPT_PROVIDER_DATA
*
data
)
{
{
BOOL
ret
;
DWORD
err
;
WTD_GENERIC_CHAIN_POLICY_DATA
*
policyData
=
WTD_GENERIC_CHAIN_POLICY_DATA
*
policyData
=
data
->
pWintrustData
->
pPolicyCallbackData
;
data
->
pWintrustData
->
pPolicyCallbackData
;
...
@@ -854,15 +854,11 @@ HRESULT WINAPI GenericChainCertificateTrust(CRYPT_PROVIDER_DATA *data)
...
@@ -854,15 +854,11 @@ HRESULT WINAPI GenericChainCertificateTrust(CRYPT_PROVIDER_DATA *data)
if
(
policyData
&&
policyData
->
u
.
cbSize
!=
if
(
policyData
&&
policyData
->
u
.
cbSize
!=
sizeof
(
WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
))
sizeof
(
WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
))
{
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
err
=
ERROR_INVALID_PARAMETER
;
ret
=
FALSE
;
goto
end
;
goto
end
;
}
}
if
(
!
data
->
csSigners
)
if
(
!
data
->
csSigners
)
{
err
=
TRUST_E_NOSIGNATURE
;
ret
=
FALSE
;
SetLastError
(
TRUST_E_NOSIGNATURE
);
}
else
else
{
{
DWORD
i
;
DWORD
i
;
...
@@ -880,19 +876,18 @@ HRESULT WINAPI GenericChainCertificateTrust(CRYPT_PROVIDER_DATA *data)
...
@@ -880,19 +876,18 @@ HRESULT WINAPI GenericChainCertificateTrust(CRYPT_PROVIDER_DATA *data)
pChainPara
=
&
chainPara
;
pChainPara
=
&
chainPara
;
pCreateInfo
=
&
createInfo
;
pCreateInfo
=
&
createInfo
;
}
}
ret
=
TRUE
;
err
=
ERROR_SUCCESS
;
for
(
i
=
0
;
i
<
data
->
csSigners
;
i
++
)
for
(
i
=
0
;
!
err
&&
i
<
data
->
csSigners
;
i
++
)
ret
=
WINTRUST_CreateChainForSigner
(
data
,
i
,
pCreateInfo
,
err
=
WINTRUST_CreateChainForSigner
(
data
,
i
,
pCreateInfo
,
pChainPara
);
pChainPara
);
}
}
end:
end:
if
(
!
ret
)
if
(
err
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_CERTPROV
]
=
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_CERTPROV
]
=
err
;
GetLastError
();
TRACE
(
"returning %d (%08x)
\n
"
,
!
err
?
S_OK
:
S_FALSE
,
TRACE
(
"returning %d (%08x)
\n
"
,
ret
?
S_OK
:
S_FALSE
,
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_CERTPROV
]);
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_CERTPROV
]);
return
ret
?
S_OK
:
S_FALSE
;
return
!
err
?
S_OK
:
S_FALSE
;
}
}
HRESULT
WINAPI
SoftpubAuthenticode
(
CRYPT_PROVIDER_DATA
*
data
)
HRESULT
WINAPI
SoftpubAuthenticode
(
CRYPT_PROVIDER_DATA
*
data
)
...
...
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