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
51bc735f
Commit
51bc735f
authored
Feb 08, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: Avoid calling RtlInitUnicodeString on a constant.
parent
06dc0473
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
http.c
dlls/http.sys/http.c
+4
-5
No files found.
dlls/http.sys/http.c
View file @
51bc735f
...
...
@@ -1199,19 +1199,18 @@ static void WINAPI unload(DRIVER_OBJECT *driver)
NTSTATUS
WINAPI
DriverEntry
(
DRIVER_OBJECT
*
driver
,
UNICODE_STRING
*
path
)
{
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
UNICODE_STRING
string
;
UNICODE_STRING
device_http
=
RTL_CONSTANT_STRING
(
L"
\\
Device
\\
Http"
);
UNICODE_STRING
device_http_req_queue
=
RTL_CONSTANT_STRING
(
L"
\\
Device
\\
Http
\\
ReqQueue"
);
WSADATA
wsadata
;
NTSTATUS
ret
;
TRACE
(
"driver %p, path %s.
\n
"
,
driver
,
debugstr_w
(
path
->
Buffer
));
RtlInitUnicodeString
(
&
string
,
L"
\\
Device
\\
Http"
);
attr
.
ObjectName
=
&
string
;
attr
.
ObjectName
=
&
device_http
;
if
((
ret
=
NtCreateDirectoryObject
(
&
directory_obj
,
0
,
&
attr
))
&&
ret
!=
STATUS_OBJECT_NAME_COLLISION
)
ERR
(
"Failed to create
\\
Device
\\
Http directory, status %#lx.
\n
"
,
ret
);
RtlInitUnicodeString
(
&
string
,
L"
\\
Device
\\
Http
\\
ReqQueue"
);
if
((
ret
=
IoCreateDevice
(
driver
,
0
,
&
string
,
FILE_DEVICE_UNKNOWN
,
0
,
FALSE
,
&
device_obj
)))
if
((
ret
=
IoCreateDevice
(
driver
,
0
,
&
device_http_req_queue
,
FILE_DEVICE_UNKNOWN
,
0
,
FALSE
,
&
device_obj
)))
{
ERR
(
"Failed to create request queue device, status %#lx.
\n
"
,
ret
);
NtClose
(
directory_obj
);
...
...
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