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
cf14ccc8
Commit
cf14ccc8
authored
Oct 12, 2011
by
Bernhard Loos
Committed by
Alexandre Julliard
Oct 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: FILE_OVERWRITE and FILE_OVERWRITE_IF aren't legal for NtCreateNamedPipeFile.
parent
c368df48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
pipe.c
dlls/ntdll/tests/pipe.c
+14
-0
No files found.
dlls/ntdll/tests/pipe.c
View file @
cf14ccc8
...
...
@@ -147,6 +147,20 @@ static void test_create_invalid(void)
timeout
.
QuadPart
=
-
100000000000ll
;
/* create a pipe with FILE_OVERWRITE */
res
=
pNtCreateNamedPipeFile
(
&
handle
,
FILE_READ_ATTRIBUTES
|
SYNCHRONIZE
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
,
4
/*FILE_OVERWRITE*/
,
0
,
1
,
0
,
0
,
0xFFFFFFFF
,
500
,
500
,
&
timeout
);
todo_wine
ok
(
res
==
STATUS_INVALID_PARAMETER
,
"NtCreateNamedPipeFile returned %x
\n
"
,
res
);
if
(
!
res
)
CloseHandle
(
handle
);
/* create a pipe with FILE_OVERWRITE_IF */
res
=
pNtCreateNamedPipeFile
(
&
handle
,
FILE_READ_ATTRIBUTES
|
SYNCHRONIZE
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
,
5
/*FILE_OVERWRITE_IF*/
,
0
,
1
,
0
,
0
,
0xFFFFFFFF
,
500
,
500
,
&
timeout
);
todo_wine
ok
(
res
==
STATUS_INVALID_PARAMETER
,
"NtCreateNamedPipeFile returned %x
\n
"
,
res
);
if
(
!
res
)
CloseHandle
(
handle
);
/* create a pipe with sharing = 0 */
res
=
pNtCreateNamedPipeFile
(
&
handle
,
FILE_READ_ATTRIBUTES
|
SYNCHRONIZE
,
&
attr
,
&
iosb
,
0
,
2
/*FILE_CREATE*/
,
0
,
1
,
0
,
0
,
0xFFFFFFFF
,
500
,
500
,
&
timeout
);
...
...
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