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
d7d4a5c4
Commit
d7d4a5c4
authored
Sep 28, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: In SoftpubLoadSignature, don't assume a message is present.
parent
5fa55186
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
softpub.c
dlls/wintrust/softpub.c
+16
-10
No files found.
dlls/wintrust/softpub.c
View file @
d7d4a5c4
...
...
@@ -452,28 +452,34 @@ static BOOL WINTRUST_VerifySigner(CRYPT_PROVIDER_DATA *data, DWORD signerIdx)
HRESULT
WINAPI
SoftpubLoadSignature
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
DWORD
signerCount
,
size
;
TRACE
(
"(%p)
\n
"
,
data
);
if
(
!
data
->
padwTrustStepErrors
)
return
S_FALSE
;
size
=
sizeof
(
signerCount
);
ret
=
CryptMsgGetParam
(
data
->
hMsg
,
CMSG_SIGNER_COUNT_PARAM
,
0
,
&
signerCount
,
&
size
);
if
(
ret
)
if
(
data
->
hMsg
)
{
DWORD
i
;
DWORD
signerCount
,
size
;
for
(
i
=
0
;
ret
&&
i
<
signerCount
;
i
++
)
size
=
sizeof
(
signerCount
);
ret
=
CryptMsgGetParam
(
data
->
hMsg
,
CMSG_SIGNER_COUNT_PARAM
,
0
,
&
signerCount
,
&
size
);
if
(
ret
)
{
if
((
ret
=
WINTRUST_SaveSigner
(
data
,
i
)))
ret
=
WINTRUST_VerifySigner
(
data
,
i
);
DWORD
i
;
for
(
i
=
0
;
ret
&&
i
<
signerCount
;
i
++
)
{
if
((
ret
=
WINTRUST_SaveSigner
(
data
,
i
)))
ret
=
WINTRUST_VerifySigner
(
data
,
i
);
}
}
else
SetLastError
(
TRUST_E_NOSIGNATURE
);
}
else
SetLastError
(
TRUST_E_NOSIGNATURE
)
;
ret
=
TRUE
;
if
(
!
ret
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
=
GetLastError
();
...
...
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