Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fae940df
Commit
fae940df
authored
Feb 11, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Avoid calling RtlInitUnicodeString on a static constant.
parent
33ddf019
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
wineboot.c
programs/wineboot/wineboot.c
+2
-4
No files found.
programs/wineboot/wineboot.c
View file @
fae940df
...
...
@@ -257,11 +257,10 @@ static void create_user_shared_data(void)
SYSTEM_BASIC_INFORMATION
sbi
;
BOOLEAN
*
features
;
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
UNICODE_STRING
name
;
UNICODE_STRING
name
=
RTL_CONSTANT_STRING
(
L"
\\
KernelObjects
\\
__wine_user_shared_data"
)
;
NTSTATUS
status
;
HANDLE
handle
;
RtlInitUnicodeString
(
&
name
,
L"
\\
KernelObjects
\\
__wine_user_shared_data"
);
InitializeObjectAttributes
(
&
attr
,
&
name
,
OBJ_OPENIF
,
NULL
,
NULL
);
if
((
status
=
NtOpenSection
(
&
handle
,
SECTION_ALL_ACCESS
,
&
attr
)))
{
...
...
@@ -1609,7 +1608,7 @@ int __cdecl main( int argc, char *argv[] )
BOOL
end_session
,
force
,
init
,
kill
,
restart
,
shutdown
,
update
;
HANDLE
event
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
UNICODE_STRING
nameW
=
RTL_CONSTANT_STRING
(
L"
\\
KernelObjects
\\
__wineboot_event"
)
;
BOOL
is_wow64
;
end_session
=
force
=
init
=
kill
=
restart
=
shutdown
=
update
=
FALSE
;
...
...
@@ -1690,7 +1689,6 @@ int __cdecl main( int argc, char *argv[] )
/* create event to be inherited by services.exe */
InitializeObjectAttributes
(
&
attr
,
&
nameW
,
OBJ_OPENIF
|
OBJ_INHERIT
,
0
,
NULL
);
RtlInitUnicodeString
(
&
nameW
,
L"
\\
KernelObjects
\\
__wineboot_event"
);
NtCreateEvent
(
&
event
,
EVENT_ALL_ACCESS
,
&
attr
,
NotificationEvent
,
0
);
ResetEvent
(
event
);
/* in case this is a restart */
...
...
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