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
c9c23190
Commit
c9c23190
authored
Jan 27, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Simplify error handling in SoftpubLoadSignature.
parent
47e75329
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
softpub.c
dlls/wintrust/softpub.c
+9
-13
No files found.
dlls/wintrust/softpub.c
View file @
c9c23190
...
...
@@ -560,7 +560,7 @@ static DWORD WINTRUST_VerifySigner(CRYPT_PROVIDER_DATA *data, DWORD signerIdx)
HRESULT
WINAPI
SoftpubLoadSignature
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
DWORD
err
;
TRACE
(
"(%p)
\n
"
,
data
);
...
...
@@ -572,30 +572,26 @@ HRESULT WINAPI SoftpubLoadSignature(CRYPT_PROVIDER_DATA *data)
DWORD
signerCount
,
size
;
size
=
sizeof
(
signerCount
);
ret
=
CryptMsgGetParam
(
data
->
hMsg
,
CMSG_SIGNER_COUNT_PARAM
,
0
,
&
signerCount
,
&
size
);
if
(
ret
)
if
(
CryptMsgGetParam
(
data
->
hMsg
,
CMSG_SIGNER_COUNT_PARAM
,
0
,
&
signerCount
,
&
size
))
{
DWORD
i
;
DWORD
err
=
ERROR_SUCCESS
;
err
=
ERROR_SUCCESS
;
for
(
i
=
0
;
!
err
&&
i
<
signerCount
;
i
++
)
{
if
(
!
(
err
=
WINTRUST_SaveSigner
(
data
,
i
)))
err
=
WINTRUST_VerifySigner
(
data
,
i
);
}
if
(
err
)
ret
=
FALSE
;
}
else
SetLastError
(
TRUST_E_NOSIGNATURE
)
;
err
=
TRUST_E_NOSIGNATURE
;
}
else
ret
=
TRUE
;
if
(
!
ret
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_SIGPROV
]
=
GetLastError
();
return
ret
?
S_OK
:
S_FALSE
;
err
=
ERROR_SUCCESS
;
if
(
err
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_SIGPROV
]
=
err
;
return
!
err
?
S_OK
:
S_FALSE
;
}
static
DWORD
WINTRUST_TrustStatusToConfidence
(
DWORD
errorStatus
)
...
...
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