Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
bd5edbe1
Commit
bd5edbe1
authored
Jul 13, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Create new keys in the parent of a shared key.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53343
parent
adb0ff57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
reg.c
dlls/ntdll/tests/reg.c
+0
-8
registry.c
server/registry.c
+5
-2
No files found.
dlls/ntdll/tests/reg.c
View file @
bd5edbe1
...
...
@@ -1829,30 +1829,22 @@ static void test_redirection(void)
attr
.
RootDirectory
=
root64
;
status
=
pNtOpenKey
(
&
key
,
KEY_ALL_ACCESS
,
&
attr
);
todo_wine_if
(
ptr_size
==
32
)
ok
(
status
==
STATUS_SUCCESS
,
"NtOpenKey failed: 0x%08lx
\n
"
,
status
);
if
(
!
status
)
{
len
=
sizeof
(
buffer
);
status
=
pNtQueryValueKey
(
key
,
&
value_str
,
KeyValuePartialInformation
,
info
,
len
,
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryValueKey failed: 0x%08lx
\n
"
,
status
);
dw
=
*
(
DWORD
*
)
info
->
Data
;
ok
(
dw
==
32
,
"wrong value %lu
\n
"
,
dw
);
pNtClose
(
key
);
}
attr
.
RootDirectory
=
root64
;
status
=
pNtOpenKey
(
&
key64
,
KEY_WOW64_64KEY
|
KEY_ALL_ACCESS
,
&
attr
);
todo_wine_if
(
ptr_size
==
32
)
ok
(
status
==
STATUS_SUCCESS
,
"NtOpenKey failed: 0x%08lx
\n
"
,
status
);
if
(
!
status
)
{
len
=
sizeof
(
buffer
);
status
=
pNtQueryValueKey
(
key64
,
&
value_str
,
KeyValuePartialInformation
,
info
,
len
,
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryValueKey failed: 0x%08lx
\n
"
,
status
);
dw
=
*
(
DWORD
*
)
info
->
Data
;
ok
(
dw
==
32
,
"wrong value %lu
\n
"
,
dw
);
}
pNtDeleteKey
(
key32
);
pNtClose
(
key32
);
...
...
server/registry.c
View file @
bd5edbe1
...
...
@@ -536,9 +536,12 @@ static struct object *key_lookup_name( struct object *obj, struct unicode_str *n
if
(
!
(
found
=
find_subkey
(
key
,
&
tmp
,
&
index
)))
{
/* try in the 64-bit parent */
if
((
key
->
flags
&
KEY_WOWSHARE
)
&&
(
attr
&
OBJ_KEY_WOW64
))
found
=
find_subkey
(
get_parent
(
key
),
&
tmp
,
&
index
);
{
/* try in the 64-bit parent */
key
=
get_parent
(
key
);
if
(
!
(
found
=
find_subkey
(
key
,
&
tmp
,
&
index
)))
return
grab_object
(
key
);
}
}
if
(
!
found
)
...
...
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