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
b01348c9
Commit
b01348c9
authored
Sep 19, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Implement CryptUIDlgViewCertificateA on top of CryptUIDlgViewCertificateW.
parent
6538cb44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
cryptui.spec
dlls/cryptui/cryptui.spec
+1
-1
main.c
dlls/cryptui/main.c
+35
-0
No files found.
dlls/cryptui/cryptui.spec
View file @
b01348c9
...
...
@@ -11,7 +11,7 @@
11 stub CryptUIDlgViewCRLW
12 stub CryptUIDlgViewCTLA
13 stub CryptUIDlgViewCTLW
14 st
ub CryptUIDlgViewCertificateA
14 st
dcall CryptUIDlgViewCertificateA(ptr ptr)
15 stub CryptUIDlgViewCertificatePropertiesA
16 stub CryptUIDlgViewCertificatePropertiesW
17 stdcall CryptUIDlgViewCertificateW(ptr ptr)
...
...
dlls/cryptui/main.c
View file @
b01348c9
...
...
@@ -22,6 +22,7 @@
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winuser.h"
#include "cryptuiapi.h"
#include "wine/debug.h"
...
...
@@ -56,6 +57,40 @@ BOOL WINAPI CryptUIDlgCertMgr(PCCRYPTUI_CERT_MGR_STRUCT pCryptUICertMgr)
return
FALSE
;
}
BOOL
WINAPI
CryptUIDlgViewCertificateA
(
PCCRYPTUI_VIEWCERTIFICATE_STRUCTA
pCertViewInfo
,
BOOL
*
pfPropertiesChanged
)
{
CRYPTUI_VIEWCERTIFICATE_STRUCTW
viewInfo
;
LPWSTR
title
=
NULL
;
BOOL
ret
;
TRACE
(
"(%p, %p)
\n
"
,
pCertViewInfo
,
pfPropertiesChanged
);
memcpy
(
&
viewInfo
,
pCertViewInfo
,
sizeof
(
viewInfo
));
if
(
pCertViewInfo
->
szTitle
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pCertViewInfo
->
szTitle
,
-
1
,
NULL
,
0
);
title
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
title
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
pCertViewInfo
->
szTitle
,
-
1
,
title
,
len
);
viewInfo
.
szTitle
=
title
;
}
else
{
ret
=
FALSE
;
goto
error
;
}
}
ret
=
CryptUIDlgViewCertificateW
(
&
viewInfo
,
pfPropertiesChanged
);
HeapFree
(
GetProcessHeap
(),
0
,
title
);
error:
return
ret
;
}
BOOL
WINAPI
CryptUIDlgViewCertificateW
(
PCCRYPTUI_VIEWCERTIFICATE_STRUCTW
pCertViewInfo
,
BOOL
*
pfPropertiesChanged
)
{
...
...
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