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
4318b9db
Commit
4318b9db
authored
Feb 10, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus: Avoid calling RtlInitUnicodeString on a static constant.
parent
45204192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
main.c
dlls/winebus.sys/main.c
+1
-2
No files found.
dlls/winebus.sys/main.c
View file @
4318b9db
...
...
@@ -645,17 +645,16 @@ static void sdl_bus_free_mappings(struct sdl_bus_options *options)
static
void
sdl_bus_load_mappings
(
struct
sdl_bus_options
*
options
)
{
ULONG
idx
=
0
,
len
,
count
=
0
,
capacity
,
info_size
,
info_max_size
;
UNICODE_STRING
path
=
RTL_CONSTANT_STRING
(
L"map"
);
KEY_VALUE_FULL_INFORMATION
*
info
;
OBJECT_ATTRIBUTES
attr
=
{
0
};
char
**
mappings
=
NULL
;
UNICODE_STRING
path
;
NTSTATUS
status
;
HANDLE
key
;
options
->
mappings_count
=
0
;
options
->
mappings
=
NULL
;
RtlInitUnicodeString
(
&
path
,
L"map"
);
InitializeObjectAttributes
(
&
attr
,
&
path
,
OBJ_CASE_INSENSITIVE
|
OBJ_KERNEL_HANDLE
,
driver_key
,
NULL
);
status
=
NtOpenKey
(
&
key
,
KEY_ALL_ACCESS
,
&
attr
);
if
(
status
)
return
;
...
...
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