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
f422fa83
Commit
f422fa83
authored
Sep 22, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptdlg: Implement CertViewPropertiesA on top of CertViewPropertiesW.
parent
d99b2381
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
main.c
dlls/cryptdlg/main.c
+28
-2
No files found.
dlls/cryptdlg/main.c
View file @
f422fa83
...
...
@@ -22,6 +22,7 @@
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wincrypt.h"
#include "wintrust.h"
#include "winuser.h"
...
...
@@ -110,8 +111,33 @@ HRESULT WINAPI CertTrustFinalPolicy(CRYPT_PROVIDER_DATA *pProvData)
*/
BOOL
WINAPI
CertViewPropertiesA
(
CERT_VIEWPROPERTIES_STRUCT_A
*
info
)
{
FIXME
(
"(%p): stub
\n
"
,
info
);
return
FALSE
;
CERT_VIEWPROPERTIES_STRUCT_W
infoW
;
LPWSTR
title
=
NULL
;
BOOL
ret
;
TRACE
(
"(%p)
\n
"
,
info
);
memcpy
(
&
infoW
,
info
,
sizeof
(
infoW
));
if
(
info
->
szTitle
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
info
->
szTitle
,
-
1
,
NULL
,
0
);
title
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
title
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
info
->
szTitle
,
-
1
,
title
,
len
);
infoW
.
szTitle
=
title
;
}
else
{
ret
=
FALSE
;
goto
error
;
}
}
ret
=
CertViewPropertiesW
(
&
infoW
);
HeapFree
(
GetProcessHeap
(),
0
,
title
);
error:
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