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
38f9a788
Commit
38f9a788
authored
Jan 29, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add tests for NULL object attributes.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe092462
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
16 deletions
+3
-16
file.c
dlls/ntdll/file.c
+2
-1
om.c
dlls/ntdll/om.c
+1
-1
file.c
dlls/ntdll/tests/file.c
+0
-14
om.c
dlls/ntdll/tests/om.c
+0
-0
No files found.
dlls/ntdll/file.c
View file @
38f9a788
...
...
@@ -3513,6 +3513,8 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access,
options
,
pipe_type
,
read_mode
,
completion_mode
,
max_inst
,
inbound_quota
,
outbound_quota
,
timeout
);
if
(
!
attr
)
return
STATUS_INVALID_PARAMETER
;
/* assume we only get relative timeout */
if
(
timeout
->
QuadPart
>
0
)
FIXME
(
"Wrong time %s
\n
"
,
wine_dbgstr_longlong
(
timeout
->
QuadPart
));
...
...
@@ -3637,7 +3639,6 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE pHandle, ULONG DesiredAccess,
if
(
!
pHandle
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
attr
)
return
STATUS_INVALID_PARAMETER
;
if
(
!
attr
->
ObjectName
)
return
STATUS_OBJECT_PATH_SYNTAX_BAD
;
if
((
ret
=
alloc_object_attributes
(
attr
,
&
objattr
,
&
len
)))
return
ret
;
...
...
dlls/ntdll/om.c
View file @
38f9a788
...
...
@@ -623,7 +623,7 @@ NTSTATUS WINAPI NtCreateSymbolicLinkObject(OUT PHANDLE SymbolicLinkHandle,IN ACC
data_size_t
len
;
struct
object_attributes
*
objattr
;
if
(
!
SymbolicLinkHandle
||
!
TargetName
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
SymbolicLinkHandle
||
!
attr
||
!
TargetName
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
TargetName
->
Buffer
)
return
STATUS_INVALID_PARAMETER
;
TRACE
(
"(%p,0x%08x,%s -> %s)
\n
"
,
SymbolicLinkHandle
,
DesiredAccess
,
...
...
dlls/ntdll/tests/file.c
View file @
38f9a788
...
...
@@ -1158,20 +1158,6 @@ static void nt_mailslot_test(void)
if
(
rc
==
STATUS_SUCCESS
)
pNtClose
(
hslot
);
/*
* Test handling of a NULL unicode string in ObjectName
*/
InitializeObjectAttributes
(
&
attr
,
&
str
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
attr
.
ObjectName
=
NULL
;
rc
=
pNtCreateMailslotFile
(
&
hslot
,
DesiredAccess
,
&
attr
,
&
IoStatusBlock
,
CreateOptions
,
MailslotQuota
,
MaxMessageSize
,
&
TimeOut
);
ok
(
rc
==
STATUS_OBJECT_PATH_SYNTAX_BAD
||
rc
==
STATUS_INVALID_PARAMETER
,
"rc = %x not STATUS_OBJECT_PATH_SYNTAX_BAD or STATUS_INVALID_PARAMETER
\n
"
,
rc
);
if
(
rc
==
STATUS_SUCCESS
)
pNtClose
(
hslot
);
/*
* Test a valid call
*/
InitializeObjectAttributes
(
&
attr
,
&
str
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
...
...
dlls/ntdll/tests/om.c
View file @
38f9a788
This diff is collapsed.
Click to expand it.
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