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
0509d021
Commit
0509d021
authored
Jan 16, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Include root store in CertEnumSystemStore enumeration for the local machine location.
parent
69e43ef1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
store.c
dlls/crypt32/store.c
+9
-2
No files found.
dlls/crypt32/store.c
View file @
0509d021
...
...
@@ -329,10 +329,11 @@ static WINECRYPT_CERTSTORE *CRYPT_MemOpenStore(HCRYPTPROV hCryptProv,
return
(
PWINECRYPT_CERTSTORE
)
store
;
}
static
const
WCHAR
rootW
[]
=
{
'R'
,
'o'
,
'o'
,
't'
,
0
};
static
PWINECRYPT_CERTSTORE
CRYPT_SysRegOpenStoreW
(
HCRYPTPROV
hCryptProv
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
static
const
WCHAR
rootW
[]
=
{
'R'
,
'o'
,
'o'
,
't'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
LPCWSTR
storeName
=
(
LPCWSTR
)
pvPara
;
LPWSTR
storePath
;
...
...
@@ -1350,6 +1351,7 @@ BOOL WINAPI CertEnumSystemStore(DWORD dwFlags, void *pvSystemStoreLocationPara,
BOOL
ret
=
FALSE
;
LONG
rc
;
HKEY
key
;
CERT_SYSTEM_STORE_INFO
info
=
{
sizeof
(
info
)
};
TRACE
(
"(%08x, %p, %p, %p)
\n
"
,
dwFlags
,
pvSystemStoreLocationPara
,
pvArg
,
pfnEnum
);
...
...
@@ -1358,7 +1360,6 @@ BOOL WINAPI CertEnumSystemStore(DWORD dwFlags, void *pvSystemStoreLocationPara,
if
(
!
rc
)
{
DWORD
index
=
0
;
CERT_SYSTEM_STORE_INFO
info
=
{
sizeof
(
info
)
};
ret
=
TRUE
;
do
{
...
...
@@ -1375,6 +1376,12 @@ BOOL WINAPI CertEnumSystemStore(DWORD dwFlags, void *pvSystemStoreLocationPara,
}
else
SetLastError
(
rc
);
/* Include root store for the local machine location (it isn't in the
* registry)
*/
if
(
ret
&&
(
dwFlags
&
CERT_SYSTEM_STORE_LOCATION_MASK
)
==
CERT_SYSTEM_STORE_LOCAL_MACHINE
)
ret
=
pfnEnum
(
rootW
,
dwFlags
,
&
info
,
NULL
,
pvArg
);
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