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
69208b60
Commit
69208b60
authored
Aug 24, 2013
by
George Stephanos
Committed by
Alexandre Julliard
Aug 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add tests for hkcr handle mask.
parent
31727e81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
registry.c
dlls/advapi32/tests/registry.c
+34
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
69208b60
...
...
@@ -31,6 +31,8 @@
#include "winerror.h"
#include "aclapi.h"
#define IS_HKCR(hk) ((UINT_PTR)hk > 0 && ((UINT_PTR)hk & 3) == 2)
static
HKEY
hkey_main
;
static
DWORD
GLE
;
...
...
@@ -2562,6 +2564,37 @@ cleanup:
RegCloseKey
(
hkcr
);
}
static
void
test_classesroot_mask
(
void
)
{
HKEY
hkey
;
LSTATUS
res
;
res
=
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
"CLSID"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"RegOpenKeyA failed: %d
\n
"
,
res
);
todo_wine
ok
(
IS_HKCR
(
hkey
),
"hkcr mask not set in %p
\n
"
,
hkey
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"RegOpenKeyA failed: %d
\n
"
,
res
);
ok
(
!
IS_HKCR
(
hkey
),
"hkcr mask set in %p
\n
"
,
hkey
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"RegOpenKeyA failed: %d
\n
"
,
res
);
ok
(
!
IS_HKCR
(
hkey
),
"hkcr mask set in %p
\n
"
,
hkey
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyA
(
HKEY_USERS
,
".Default"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"RegOpenKeyA failed: %d
\n
"
,
res
);
ok
(
!
IS_HKCR
(
hkey
),
"hkcr mask set in %p
\n
"
,
hkey
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyA
(
HKEY_CURRENT_CONFIG
,
"Software"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"RegOpenKeyA failed: %d
\n
"
,
res
);
ok
(
!
IS_HKCR
(
hkey
),
"hkcr mask set in %p
\n
"
,
hkey
);
RegCloseKey
(
hkey
);
}
static
void
test_deleted_key
(
void
)
{
HKEY
hkey
,
hkey2
;
...
...
@@ -2656,6 +2689,7 @@ START_TEST(registry)
test_redirection
();
test_classesroot
();
test_classesroot_enum
();
test_classesroot_mask
();
/* SaveKey/LoadKey require the SE_BACKUP_NAME privilege to be set */
if
(
set_privileges
(
SE_BACKUP_NAME
,
TRUE
)
&&
...
...
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