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
89bb2622
Commit
89bb2622
authored
Feb 21, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Set ERROR_ALREADY_EXISTS for existing pipe in CreateNamedPipeW().
Reported by Dávid Török.
parent
1b9db994
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
sync.c
dlls/kernelbase/sync.c
+1
-1
om.c
dlls/ntdll/tests/om.c
+0
-1
No files found.
dlls/kernelbase/sync.c
View file @
89bb2622
...
...
@@ -1305,12 +1305,12 @@ HANDLE WINAPI DECLSPEC_HOTPATCH CreateNamedPipeW( LPCWSTR name, DWORD open_mode,
if
(
instances
>=
PIPE_UNLIMITED_INSTANCES
)
instances
=
~
0U
;
time
.
QuadPart
=
(
ULONGLONG
)
timeout
*
-
10000
;
SetLastError
(
0
);
status
=
NtCreateNamedPipeFile
(
&
handle
,
access
,
&
attr
,
&
iosb
,
sharing
,
FILE_OPEN_IF
,
options
,
pipe_type
,
read_mode
,
non_block
,
instances
,
in_buff
,
out_buff
,
&
time
);
RtlFreeUnicodeString
(
&
nt_name
);
if
(
!
set_ntstatus
(
status
))
return
INVALID_HANDLE_VALUE
;
SetLastError
(
iosb
.
Information
==
FILE_CREATED
?
ERROR_SUCCESS
:
ERROR_ALREADY_EXISTS
);
return
handle
;
}
...
...
dlls/ntdll/tests/om.c
View file @
89bb2622
...
...
@@ -411,7 +411,6 @@ static void test_name_collisions(void)
h1
=
CreateNamedPipeA
(
"
\\\\
.
\\
pipe
\\
named_pipe"
,
PIPE_ACCESS_DUPLEX
,
PIPE_READMODE_BYTE
,
10
,
256
,
256
,
1000
,
NULL
);
winerr
=
GetLastError
();
todo_wine
ok
(
h1
!=
0
&&
winerr
==
ERROR_ALREADY_EXISTS
,
"CreateNamedPipeA got ret=%p (%ld)
\n
"
,
h1
,
winerr
);
pNtClose
(
h1
);
pNtClose
(
h
);
...
...
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