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
0cb350f1
Commit
0cb350f1
authored
Jul 07, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make all registry lookups case-insensitive.
Following recent Windows versions. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87bdc642
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
registry.c
dlls/ntdll/unix/registry.c
+6
-1
No files found.
dlls/ntdll/unix/registry.c
View file @
0cb350f1
...
...
@@ -83,6 +83,7 @@ NTSTATUS WINAPI NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI
if
(
attr
->
Length
!=
sizeof
(
OBJECT_ATTRIBUTES
))
return
STATUS_INVALID_PARAMETER
;
if
(
!
attr
->
ObjectName
->
Length
&&
!
attr
->
RootDirectory
)
return
STATUS_OBJECT_PATH_SYNTAX_BAD
;
if
((
ret
=
alloc_object_attributes
(
attr
,
&
objattr
,
&
len
)))
return
ret
;
objattr
->
attributes
|=
OBJ_OPENIF
|
OBJ_CASE_INSENSITIVE
;
TRACE
(
"(%p,%s,%s,%x,%x,%p)
\n
"
,
attr
->
RootDirectory
,
debugstr_us
(
attr
->
ObjectName
),
debugstr_us
(
class
),
options
,
access
,
key
);
...
...
@@ -133,6 +134,7 @@ NTSTATUS WINAPI NtCreateKeyTransacted( HANDLE *key, ACCESS_MASK access, const OB
NTSTATUS
WINAPI
NtOpenKeyEx
(
HANDLE
*
key
,
ACCESS_MASK
access
,
const
OBJECT_ATTRIBUTES
*
attr
,
ULONG
options
)
{
NTSTATUS
ret
;
ULONG
attributes
;
*
key
=
0
;
if
(
attr
->
Length
!=
sizeof
(
*
attr
))
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -142,11 +144,13 @@ NTSTATUS WINAPI NtOpenKeyEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI
if
(
options
&
~
REG_OPTION_OPEN_LINK
)
FIXME
(
"options %x not implemented
\n
"
,
options
);
attributes
=
attr
->
Attributes
|
OBJ_CASE_INSENSITIVE
;
SERVER_START_REQ
(
open_key
)
{
req
->
parent
=
wine_server_obj_handle
(
attr
->
RootDirectory
);
req
->
access
=
access
;
req
->
attributes
=
attr
->
Attr
ibutes
;
req
->
attributes
=
attributes
;
wine_server_add_data
(
req
,
attr
->
ObjectName
->
Buffer
,
attr
->
ObjectName
->
Length
);
ret
=
wine_server_call
(
req
);
*
key
=
wine_server_ptr_handle
(
reply
->
hkey
);
...
...
@@ -699,6 +703,7 @@ NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fil
if
(
ret
)
return
ret
;
if
((
ret
=
alloc_object_attributes
(
attr
,
&
objattr
,
&
len
)))
return
ret
;
objattr
->
attributes
|=
OBJ_OPENIF
|
OBJ_CASE_INSENSITIVE
;
SERVER_START_REQ
(
load_registry
)
{
...
...
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