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
3ab7d745
Commit
3ab7d745
authored
Feb 03, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsiproxy: Avoid calling RtlInitUnicodeString on a static constant.
parent
5a1d2dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
device.c
dlls/nsiproxy.sys/device.c
+2
-4
No files found.
dlls/nsiproxy.sys/device.c
View file @
3ab7d745
...
...
@@ -305,13 +305,11 @@ static NTSTATUS WINAPI nsi_ioctl( DEVICE_OBJECT *device, IRP *irp )
static
int
add_device
(
DRIVER_OBJECT
*
driver
)
{
UNICODE_STRING
name
,
link
;
UNICODE_STRING
name
=
RTL_CONSTANT_STRING
(
L"
\\
Device
\\
Nsi"
);
UNICODE_STRING
link
=
RTL_CONSTANT_STRING
(
L"
\\
??
\\
Nsi"
);
DEVICE_OBJECT
*
device
;
NTSTATUS
status
;
RtlInitUnicodeString
(
&
name
,
L"
\\
Device
\\
Nsi"
);
RtlInitUnicodeString
(
&
link
,
L"
\\
??
\\
Nsi"
);
if
(
!
(
status
=
IoCreateDevice
(
driver
,
0
,
&
name
,
FILE_DEVICE_NETWORK
,
FILE_DEVICE_SECURE_OPEN
,
FALSE
,
&
device
)))
status
=
IoCreateSymbolicLink
(
&
link
,
&
name
);
if
(
status
)
...
...
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