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
928d28f6
Commit
928d28f6
authored
Mar 22, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't enforce mailslots path format in ntdll, only in the server.
parent
50c48004
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
file.c
dlls/ntdll/file.c
+0
-11
mailslot.c
server/mailslot.c
+6
-2
No files found.
dlls/ntdll/file.c
View file @
928d28f6
...
@@ -2187,8 +2187,6 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE pHandle, ULONG DesiredAccess,
...
@@ -2187,8 +2187,6 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE pHandle, ULONG DesiredAccess,
PLARGE_INTEGER
TimeOut
)
PLARGE_INTEGER
TimeOut
)
{
{
LARGE_INTEGER
timeout
;
LARGE_INTEGER
timeout
;
static
const
WCHAR
leadin
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'M'
,
'A'
,
'I'
,
'L'
,
'S'
,
'L'
,
'O'
,
'T'
,
'\\'
};
NTSTATUS
ret
;
NTSTATUS
ret
;
TRACE
(
"%p %08x %p %p %08x %08x %08x %p
\n
"
,
TRACE
(
"%p %08x %p %p %08x %08x %08x %p
\n
"
,
...
@@ -2196,18 +2194,9 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE pHandle, ULONG DesiredAccess,
...
@@ -2196,18 +2194,9 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE pHandle, ULONG DesiredAccess,
CreateOptions
,
MailslotQuota
,
MaxMessageSize
,
TimeOut
);
CreateOptions
,
MailslotQuota
,
MaxMessageSize
,
TimeOut
);
if
(
!
pHandle
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
pHandle
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
attr
)
return
STATUS_INVALID_PARAMETER
;
if
(
!
attr
)
return
STATUS_INVALID_PARAMETER
;
if
(
!
attr
->
ObjectName
)
return
STATUS_OBJECT_PATH_SYNTAX_BAD
;
if
(
!
attr
->
ObjectName
)
return
STATUS_OBJECT_PATH_SYNTAX_BAD
;
if
(
attr
->
ObjectName
->
Length
<
sizeof
(
leadin
)
||
strncmpiW
(
attr
->
ObjectName
->
Buffer
,
leadin
,
sizeof
(
leadin
)
/
sizeof
(
leadin
[
0
])
))
{
return
STATUS_OBJECT_NAME_INVALID
;
}
/*
/*
* For a NULL TimeOut pointer set the default timeout value
* For a NULL TimeOut pointer set the default timeout value
*/
*/
...
...
server/mailslot.c
View file @
928d28f6
...
@@ -345,7 +345,11 @@ static struct mailslot *create_mailslot( struct directory *root,
...
@@ -345,7 +345,11 @@ static struct mailslot *create_mailslot( struct directory *root,
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
&
mailslot_ops
);
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
&
mailslot_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
(
!
new_name
.
len
)
{
{
...
@@ -362,7 +366,7 @@ static struct mailslot *create_mailslot( struct directory *root,
...
@@ -362,7 +366,7 @@ static struct mailslot *create_mailslot( struct directory *root,
if
(
obj
->
ops
!=
&
mailslot_device_ops
)
if
(
obj
->
ops
!=
&
mailslot_device_ops
)
{
{
set_error
(
STATUS_OBJECT_
TYPE_MISMATCH
);
set_error
(
STATUS_OBJECT_
NAME_INVALID
);
release_object
(
obj
);
release_object
(
obj
);
return
NULL
;
return
NULL
;
}
}
...
...
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