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
b378419a
Commit
b378419a
authored
Dec 20, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Implement CryptUIDlgSelectStoreA on top of CryptUIDlgSelectStoreW.
parent
b5d066d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
6 deletions
+34
-6
main.c
dlls/cryptui/main.c
+34
-6
No files found.
dlls/cryptui/main.c
View file @
b378419a
...
...
@@ -119,21 +119,49 @@ typedef struct _CRYPTUI_SELECTSTORE_INFO_W
}
CRYPTUI_SELECTSTORE_INFO_W
,
*
PCRYPTUI_SELECTSTORE_INFO_W
;
/***********************************************************************
* CryptUIDlgSelectStore
A
(CRYPTUI.@)
* CryptUIDlgSelectStore
W
(CRYPTUI.@)
*/
HCERTSTORE
WINAPI
CryptUIDlgSelectStore
A
(
PCRYPTUI_SELECTSTORE_INFO_A
info
)
HCERTSTORE
WINAPI
CryptUIDlgSelectStore
W
(
PCRYPTUI_SELECTSTORE_INFO_W
info
)
{
FIXME
(
"(%p): stub
\n
"
,
info
);
return
NULL
;
}
/***********************************************************************
* CryptUIDlgSelectStore
W
(CRYPTUI.@)
* CryptUIDlgSelectStore
A
(CRYPTUI.@)
*/
HCERTSTORE
WINAPI
CryptUIDlgSelectStore
W
(
PCRYPTUI_SELECTSTORE_INFO_W
info
)
HCERTSTORE
WINAPI
CryptUIDlgSelectStore
A
(
PCRYPTUI_SELECTSTORE_INFO_A
info
)
{
FIXME
(
"(%p): stub
\n
"
,
info
);
return
NULL
;
CRYPTUI_SELECTSTORE_INFO_W
infoW
;
HCERTSTORE
ret
;
int
len
;
TRACE
(
"(%p)
\n
"
,
info
);
if
(
info
->
dwSize
!=
sizeof
(
CRYPTUI_SELECTSTORE_INFO_A
))
{
WARN
(
"unexpected size %d
\n
"
,
info
->
dwSize
);
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
memcpy
(
&
infoW
,
&
info
,
sizeof
(
info
));
if
(
info
->
pszTitle
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
info
->
pszTitle
,
-
1
,
NULL
,
0
);
infoW
.
pwszTitle
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
info
->
pszTitle
,
-
1
,
infoW
.
pwszTitle
,
len
);
}
if
(
info
->
pszText
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
info
->
pszText
,
-
1
,
NULL
,
0
);
infoW
.
pwszText
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
info
->
pszText
,
-
1
,
infoW
.
pwszText
,
len
);
}
ret
=
CryptUIDlgSelectStoreW
(
&
infoW
);
HeapFree
(
GetProcessHeap
(),
0
,
infoW
.
pwszText
);
HeapFree
(
GetProcessHeap
(),
0
,
infoW
.
pwszTitle
);
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