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
0d1526bf
Commit
0d1526bf
authored
Oct 04, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Don't cache HKCR if WOW64 redirection flags are set.
parent
8cb7f877
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
27 deletions
+72
-27
registry.c
dlls/advapi32/registry.c
+37
-26
registry.c
dlls/advapi32/tests/registry.c
+35
-1
No files found.
dlls/advapi32/registry.c
View file @
0d1526bf
This diff is collapsed.
Click to expand it.
dlls/advapi32/tests/registry.c
View file @
0d1526bf
...
...
@@ -1869,8 +1869,9 @@ static void _check_key_value( int line, HANDLE root, const char *name, DWORD fla
static
void
test_redirection
(
void
)
{
DWORD
err
,
type
,
dw
,
len
;
HKEY
key
,
root32
,
root64
,
key32
,
key64
;
HKEY
key
,
root32
,
root64
,
key32
,
key64
,
native
,
op_key
;
BOOL
is_vista
=
FALSE
;
REGSAM
opposite
=
(
sizeof
(
void
*
)
==
8
?
KEY_WOW64_32KEY
:
KEY_WOW64_64KEY
);
if
(
ptr_size
!=
64
)
{
...
...
@@ -2104,6 +2105,39 @@ static void test_redirection(void)
RegCloseKey
(
key64
);
RegCloseKey
(
root32
);
RegCloseKey
(
root64
);
/* open key in native bit mode */
err
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"Interface"
,
0
,
KEY_ALL_ACCESS
,
&
native
);
ok
(
err
==
ERROR_SUCCESS
,
"got %i
\n
"
,
err
);
RegDeleteKeyExA
(
native
,
"AWineTest"
,
0
,
0
);
/* write subkey in opposite bit mode */
err
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"Interface"
,
0
,
KEY_ALL_ACCESS
|
opposite
,
&
op_key
);
ok
(
err
==
ERROR_SUCCESS
,
"got %i
\n
"
,
err
);
err
=
RegCreateKeyExA
(
op_key
,
"AWineTest"
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
|
opposite
,
NULL
,
&
key
,
NULL
);
ok
(
err
==
ERROR_SUCCESS
||
err
==
ERROR_ACCESS_DENIED
,
"got %i
\n
"
,
err
);
if
(
err
!=
ERROR_SUCCESS
){
win_skip
(
"Can't write to registry
\n
"
);
RegCloseKey
(
op_key
);
RegCloseKey
(
native
);
return
;
}
RegCloseKey
(
key
);
/* verify subkey is not present in native mode */
err
=
RegOpenKeyExA
(
native
,
"AWineTest"
,
0
,
KEY_ALL_ACCESS
,
&
key
);
ok
(
err
==
ERROR_FILE_NOT_FOUND
||
broken
(
err
==
ERROR_SUCCESS
),
/* before Win7, HKCR is reflected instead of redirected */
"got %i
\n
"
,
err
);
err
=
RegDeleteKeyExA
(
op_key
,
"AWineTest"
,
opposite
,
0
);
ok
(
err
==
ERROR_SUCCESS
,
"got %i
\n
"
,
err
);
RegCloseKey
(
op_key
);
RegCloseKey
(
native
);
}
static
void
test_classesroot
(
void
)
...
...
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