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
6b7adb3d
Commit
6b7adb3d
authored
Dec 02, 2022
by
Sven Baars
Committed by
Alexandre Julliard
Mar 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Add a fast path to create_key().
parent
5d7bbb56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
registry.c
dlls/kernelbase/registry.c
+12
-1
No files found.
dlls/kernelbase/registry.c
View file @
6b7adb3d
...
...
@@ -258,7 +258,18 @@ static NTSTATUS create_key( HKEY *retkey, HKEY root, UNICODE_STRING name, ULONG
attr
.
SecurityQualityOfService
=
NULL
;
if
(
options
&
REG_OPTION_OPEN_LINK
)
attr
.
Attributes
|=
OBJ_OPENLINK
;
if
(
!
force_wow32
)
status
=
NtCreateKey
(
&
subkey
,
access
,
&
attr
,
0
,
class
,
options
,
dispos
);
if
(
!
force_wow32
)
{
status
=
NtCreateKey
(
(
HANDLE
*
)
retkey
,
access
,
&
attr
,
0
,
class
,
options
,
dispos
);
if
(
status
==
STATUS_PREDEFINED_HANDLE
)
{
*
retkey
=
get_perflib_key
(
*
retkey
);
status
=
STATUS_SUCCESS
;
}
if
(
!
status
||
status
!=
STATUS_OBJECT_NAME_NOT_FOUND
)
return
status
;
}
if
(
status
==
STATUS_OBJECT_NAME_NOT_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