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
50c48004
Commit
50c48004
authored
Mar 22, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't enforce named pipes path format in ntdll, only in the server.
parent
846dc623
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
file.c
dlls/ntdll/file.c
+0
-5
named_pipe.c
server/named_pipe.c
+6
-2
No files found.
dlls/ntdll/file.c
View file @
50c48004
...
...
@@ -2085,17 +2085,12 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access,
PLARGE_INTEGER
timeout
)
{
NTSTATUS
status
;
static
const
WCHAR
leadin
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'P'
,
'I'
,
'P'
,
'E'
,
'\\'
};
TRACE
(
"(%p %x %s %p %x %d %x %d %d %d %d %d %d %p)
\n
"
,
handle
,
access
,
debugstr_w
(
attr
->
ObjectName
->
Buffer
),
iosb
,
sharing
,
dispo
,
options
,
pipe_type
,
read_mode
,
completion_mode
,
max_inst
,
inbound_quota
,
outbound_quota
,
timeout
);
if
(
attr
->
ObjectName
->
Length
<
sizeof
(
leadin
)
||
strncmpiW
(
attr
->
ObjectName
->
Buffer
,
leadin
,
sizeof
(
leadin
)
/
sizeof
(
leadin
[
0
])
))
return
STATUS_OBJECT_NAME_INVALID
;
/* assume we only get relative timeout, and storable in a DWORD as ms */
if
(
timeout
->
QuadPart
>
0
||
(
timeout
->
QuadPart
/
-
10000
)
>>
32
)
FIXME
(
"Wrong time %s
\n
"
,
wine_dbgstr_longlong
(
timeout
->
QuadPart
));
...
...
server/named_pipe.c
View file @
50c48004
...
...
@@ -585,7 +585,11 @@ static struct named_pipe *create_named_pipe( struct directory *root, const struc
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
&
named_pipe_ops
);
if
(
!
(
obj
=
find_object_dir
(
root
,
name
,
attr
,
&
new_name
)))
return
NULL
;
if
(
!
(
obj
=
find_object_dir
(
root
,
name
,
attr
,
&
new_name
)))
{
set_error
(
STATUS_OBJECT_NAME_INVALID
);
return
NULL
;
}
if
(
!
new_name
.
len
)
{
if
(
attr
&
OBJ_OPENIF
&&
obj
->
ops
==
&
named_pipe_ops
)
...
...
@@ -603,7 +607,7 @@ static struct named_pipe *create_named_pipe( struct directory *root, const struc
}
if
(
obj
->
ops
!=
&
named_pipe_device_ops
)
set_error
(
STATUS_OBJECT_
TYPE_MISMATCH
);
set_error
(
STATUS_OBJECT_
NAME_INVALID
);
else
{
struct
named_pipe_device
*
dev
=
(
struct
named_pipe_device
*
)
obj
;
...
...
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