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
cd2002fd
Commit
cd2002fd
authored
Feb 07, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpapi: Avoid calling RtlInitUnicodeString on a static constant.
parent
a6847dd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
httpapi_main.c
dlls/httpapi/httpapi_main.c
+2
-4
No files found.
dlls/httpapi/httpapi_main.c
View file @
cd2002fd
...
@@ -185,7 +185,7 @@ ULONG WINAPI HttpSetServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID
...
@@ -185,7 +185,7 @@ ULONG WINAPI HttpSetServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID
ULONG
WINAPI
HttpCreateHttpHandle
(
HANDLE
*
handle
,
ULONG
reserved
)
ULONG
WINAPI
HttpCreateHttpHandle
(
HANDLE
*
handle
,
ULONG
reserved
)
{
{
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
UNICODE_STRING
string
;
UNICODE_STRING
string
=
RTL_CONSTANT_STRING
(
L"
\\
Device
\\
Http
\\
ReqQueue"
)
;
IO_STATUS_BLOCK
iosb
;
IO_STATUS_BLOCK
iosb
;
TRACE
(
"handle %p, reserved %#lx.
\n
"
,
handle
,
reserved
);
TRACE
(
"handle %p, reserved %#lx.
\n
"
,
handle
,
reserved
);
...
@@ -193,7 +193,6 @@ ULONG WINAPI HttpCreateHttpHandle(HANDLE *handle, ULONG reserved)
...
@@ -193,7 +193,6 @@ ULONG WINAPI HttpCreateHttpHandle(HANDLE *handle, ULONG reserved)
if
(
!
handle
)
if
(
!
handle
)
return
ERROR_INVALID_PARAMETER
;
return
ERROR_INVALID_PARAMETER
;
RtlInitUnicodeString
(
&
string
,
L"
\\
Device
\\
Http
\\
ReqQueue"
);
attr
.
ObjectName
=
&
string
;
attr
.
ObjectName
=
&
string
;
return
RtlNtStatusToDosError
(
NtCreateFile
(
handle
,
0
,
&
attr
,
&
iosb
,
NULL
,
return
RtlNtStatusToDosError
(
NtCreateFile
(
handle
,
0
,
&
attr
,
&
iosb
,
NULL
,
FILE_ATTRIBUTE_NORMAL
,
0
,
FILE_OPEN
,
FILE_NON_DIRECTORY_FILE
,
NULL
,
0
));
FILE_ATTRIBUTE_NORMAL
,
0
,
FILE_OPEN
,
FILE_NON_DIRECTORY_FILE
,
NULL
,
0
));
...
@@ -741,7 +740,7 @@ ULONG WINAPI HttpCreateRequestQueue(HTTPAPI_VERSION version, const WCHAR *name,
...
@@ -741,7 +740,7 @@ ULONG WINAPI HttpCreateRequestQueue(HTTPAPI_VERSION version, const WCHAR *name,
SECURITY_ATTRIBUTES
*
sa
,
ULONG
flags
,
HANDLE
*
handle
)
SECURITY_ATTRIBUTES
*
sa
,
ULONG
flags
,
HANDLE
*
handle
)
{
{
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
UNICODE_STRING
string
;
UNICODE_STRING
string
=
RTL_CONSTANT_STRING
(
L"
\\
Device
\\
Http
\\
ReqQueue"
)
;
IO_STATUS_BLOCK
iosb
;
IO_STATUS_BLOCK
iosb
;
TRACE
(
"version %u.%u, name %s, sa %p, flags %#lx, handle %p.
\n
"
,
TRACE
(
"version %u.%u, name %s, sa %p, flags %#lx, handle %p.
\n
"
,
...
@@ -753,7 +752,6 @@ ULONG WINAPI HttpCreateRequestQueue(HTTPAPI_VERSION version, const WCHAR *name,
...
@@ -753,7 +752,6 @@ ULONG WINAPI HttpCreateRequestQueue(HTTPAPI_VERSION version, const WCHAR *name,
if
(
flags
)
if
(
flags
)
FIXME
(
"Unhandled flags %#lx.
\n
"
,
flags
);
FIXME
(
"Unhandled flags %#lx.
\n
"
,
flags
);
RtlInitUnicodeString
(
&
string
,
L"
\\
Device
\\
Http
\\
ReqQueue"
);
attr
.
ObjectName
=
&
string
;
attr
.
ObjectName
=
&
string
;
if
(
sa
&&
sa
->
bInheritHandle
)
if
(
sa
&&
sa
->
bInheritHandle
)
attr
.
Attributes
|=
OBJ_INHERIT
;
attr
.
Attributes
|=
OBJ_INHERIT
;
...
...
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