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
4ae62fba
Commit
4ae62fba
authored
Jan 24, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Add error checking to CryptUIWizExport.
parent
11651461
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
main.c
dlls/cryptui/main.c
+11
-2
No files found.
dlls/cryptui/main.c
View file @
4ae62fba
...
...
@@ -6137,6 +6137,11 @@ static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
{
BOOL
ret
;
if
(
pContextInfo
->
dwSize
!=
sizeof
(
CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO
))
{
SetLastError
(
E_INVALIDARG
);
return
FALSE
;
}
switch
(
pExportInfo
->
dwSubjectChoice
)
{
case
CRYPTUI_WIZ_EXPORT_CRL_CONTEXT
:
...
...
@@ -6152,6 +6157,10 @@ static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
default:
switch
(
pContextInfo
->
dwExportFormat
)
{
case
CRYPTUI_WIZ_EXPORT_FORMAT_DER
:
ret
=
save_der
(
file
,
pExportInfo
->
u
.
pCertContext
->
pbCertEncoded
,
pExportInfo
->
u
.
pCertContext
->
cbCertEncoded
);
break
;
case
CRYPTUI_WIZ_EXPORT_FORMAT_BASE64
:
ret
=
save_base64
(
file
,
pExportInfo
->
u
.
pCertContext
->
pbCertEncoded
,
...
...
@@ -6165,8 +6174,8 @@ static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
ret
=
FALSE
;
break
;
default:
ret
=
save_der
(
file
,
pExportInfo
->
u
.
pCertContext
->
pbCertEncoded
,
pExportInfo
->
u
.
pCertContext
->
cbCertEncoded
)
;
SetLastError
(
E_FAIL
);
ret
=
FALSE
;
}
}
return
ret
;
...
...
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