Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Mayr
wine
Commits
11e6717e
Commit
11e6717e
authored
17 years ago
by
Juan Lang
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
crypt32: Accept ERROR_BADKEY in addition to ERROR_INVALID_HANDLE.
parent
f575d856
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/crypt32/tests/store.c
+7
-5
7 additions, 5 deletions
dlls/crypt32/tests/store.c
with
7 additions
and
5 deletions
dlls/crypt32/tests/store.c
+
7
−
5
View file @
11e6717e
...
...
@@ -595,14 +595,16 @@ static void testRegStore(void)
HCERTSTORE
store
;
LONG
rc
;
HKEY
key
=
NULL
;
DWORD
disp
;
DWORD
disp
,
GLE
;
store
=
CertOpenStore
(
CERT_STORE_PROV_REG
,
0
,
0
,
0
,
NULL
);
ok
(
!
store
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
GLE
=
GetLastError
();
ok
(
!
store
&&
(
GLE
==
ERROR_INVALID_HANDLE
||
GLE
==
ERROR_BADKEY
),
"Expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %d
\n
"
,
GLE
);
store
=
CertOpenStore
(
CERT_STORE_PROV_REG
,
0
,
0
,
0
,
key
);
ok
(
!
store
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
GLE
=
GetLastError
();
ok
(
!
store
&&
(
GLE
==
ERROR_INVALID_HANDLE
||
GLE
==
ERROR_BADKEY
),
"Expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %d
\n
"
,
GLE
);
/* Opening up any old key works.. */
key
=
HKEY_CURRENT_USER
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment