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
ecca1048
Commit
ecca1048
authored
Nov 01, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Nov 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error returned when exceeding allowed instances.
parent
ac6c7a9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
om.c
dlls/ntdll/tests/om.c
+1
-1
named_pipe.c
server/named_pipe.c
+2
-2
No files found.
dlls/ntdll/tests/om.c
View file @
ecca1048
...
@@ -109,7 +109,7 @@ void test_namespace_pipe(void)
...
@@ -109,7 +109,7 @@ void test_namespace_pipe(void)
status
=
pNtCreateNamedPipeFile
(
&
pipe
,
GENERIC_READ
|
GENERIC_WRITE
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
status
=
pNtCreateNamedPipeFile
(
&
pipe
,
GENERIC_READ
|
GENERIC_WRITE
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_CREATE
,
FILE_PIPE_FULL_DUPLEX
,
FALSE
,
FALSE
,
FALSE
,
1
,
256
,
256
,
&
timeout
);
FILE_CREATE
,
FILE_PIPE_FULL_DUPLEX
,
FALSE
,
FALSE
,
FALSE
,
1
,
256
,
256
,
&
timeout
);
todo_wine
ok
(
status
==
STATUS_INSTANCE_NOT_AVAILABLE
,
ok
(
status
==
STATUS_INSTANCE_NOT_AVAILABLE
,
"NtCreateNamedPipeFile should have failed with STATUS_INSTANCE_NOT_AVAILABLE got(%08lx)
\n
"
,
status
);
"NtCreateNamedPipeFile should have failed with STATUS_INSTANCE_NOT_AVAILABLE got(%08lx)
\n
"
,
status
);
pRtlInitUnicodeString
(
&
str
,
buffer2
);
pRtlInitUnicodeString
(
&
str
,
buffer2
);
...
...
server/named_pipe.c
View file @
ecca1048
...
@@ -562,10 +562,9 @@ DECL_HANDLER(create_named_pipe)
...
@@ -562,10 +562,9 @@ DECL_HANDLER(create_named_pipe)
}
}
else
else
{
{
set_error
(
0
);
/* clear the name collision */
if
(
pipe
->
maxinstances
<=
pipe
->
instances
)
if
(
pipe
->
maxinstances
<=
pipe
->
instances
)
{
{
set_error
(
STATUS_
PIPE_BUSY
);
set_error
(
STATUS_
INSTANCE_NOT_AVAILABLE
);
release_object
(
pipe
);
release_object
(
pipe
);
return
;
return
;
}
}
...
@@ -577,6 +576,7 @@ DECL_HANDLER(create_named_pipe)
...
@@ -577,6 +576,7 @@ DECL_HANDLER(create_named_pipe)
release_object
(
pipe
);
release_object
(
pipe
);
return
;
return
;
}
}
set_error
(
0
);
/* clear the name collision */
}
}
server
=
create_pipe_server
(
pipe
,
req
->
options
);
server
=
create_pipe_server
(
pipe
,
req
->
options
);
...
...
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