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
8630a0c8
Commit
8630a0c8
authored
Feb 11, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Avoid calling RtlInitUnicodeString on a static constant.
parent
fae940df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
socket.c
dlls/ws2_32/socket.c
+1
-2
No files found.
dlls/ws2_32/socket.c
View file @
8630a0c8
...
...
@@ -3823,7 +3823,7 @@ SOCKET WINAPI WSASocketW(int af, int type, int protocol,
{
struct
afd_create_params
create_params
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
string
;
UNICODE_STRING
string
=
RTL_CONSTANT_STRING
(
L"
\\
Device
\\
Afd"
)
;
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
HANDLE
handle
;
...
...
@@ -3901,7 +3901,6 @@ SOCKET WINAPI WSASocketW(int af, int type, int protocol,
}
}
RtlInitUnicodeString
(
&
string
,
L"
\\
Device
\\
Afd"
);
InitializeObjectAttributes
(
&
attr
,
&
string
,
(
flags
&
WSA_FLAG_NO_HANDLE_INHERIT
)
?
0
:
OBJ_INHERIT
,
NULL
,
NULL
);
if
((
status
=
NtOpenFile
(
&
handle
,
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
&
attr
,
&
io
,
0
,
(
flags
&
WSA_FLAG_OVERLAPPED
)
?
0
:
FILE_SYNCHRONOUS_IO_NONALERT
)))
...
...
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