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
cbf9fde4
Commit
cbf9fde4
authored
Jan 21, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Extra check for ObjectAttributes (Coverity).
parent
909b6c0d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
om.c
dlls/ntdll/om.c
+1
-1
om.c
dlls/ntdll/tests/om.c
+7
-0
No files found.
dlls/ntdll/om.c
View file @
cbf9fde4
...
@@ -562,7 +562,7 @@ NTSTATUS WINAPI NtCreateSymbolicLinkObject(OUT PHANDLE SymbolicLinkHandle,IN ACC
...
@@ -562,7 +562,7 @@ NTSTATUS WINAPI NtCreateSymbolicLinkObject(OUT PHANDLE SymbolicLinkHandle,IN ACC
req
->
access
=
DesiredAccess
;
req
->
access
=
DesiredAccess
;
req
->
attributes
=
ObjectAttributes
?
ObjectAttributes
->
Attributes
:
0
;
req
->
attributes
=
ObjectAttributes
?
ObjectAttributes
->
Attributes
:
0
;
req
->
rootdir
=
ObjectAttributes
?
ObjectAttributes
->
RootDirectory
:
0
;
req
->
rootdir
=
ObjectAttributes
?
ObjectAttributes
->
RootDirectory
:
0
;
if
(
ObjectAttributes
->
ObjectName
)
if
(
ObjectAttributes
&&
ObjectAttributes
->
ObjectName
)
{
{
req
->
name_len
=
ObjectAttributes
->
ObjectName
->
Length
;
req
->
name_len
=
ObjectAttributes
->
ObjectName
->
Length
;
wine_server_add_data
(
req
,
ObjectAttributes
->
ObjectName
->
Buffer
,
wine_server_add_data
(
req
,
ObjectAttributes
->
ObjectName
->
Buffer
,
...
...
dlls/ntdll/tests/om.c
View file @
cbf9fde4
...
@@ -483,6 +483,13 @@ void test_symboliclink(void)
...
@@ -483,6 +483,13 @@ void test_symboliclink(void)
ok
(
status
==
STATUS_INVALID_PARAMETER
,
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"NtOpenSymbolicLinkObject should have failed with STATUS_INVALID_PARAMETER got(%08x)
\n
"
,
status
);
"NtOpenSymbolicLinkObject should have failed with STATUS_INVALID_PARAMETER got(%08x)
\n
"
,
status
);
/* No attributes */
pRtlCreateUnicodeStringFromAsciiz
(
&
target
,
"
\\
DosDevices"
);
status
=
pNtCreateSymbolicLinkObject
(
&
h
,
SYMBOLIC_LINK_QUERY
,
NULL
,
&
target
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateSymbolicLinkObject failed(%08x)
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
target
);
pNtClose
(
h
);
InitializeObjectAttributes
(
&
attr
,
NULL
,
0
,
0
,
NULL
);
InitializeObjectAttributes
(
&
attr
,
NULL
,
0
,
0
,
NULL
);
SYMLNK_TEST_CREATE_FAILURE
(
&
link
,
STATUS_INVALID_PARAMETER
)
SYMLNK_TEST_CREATE_FAILURE
(
&
link
,
STATUS_INVALID_PARAMETER
)
SYMLNK_TEST_OPEN_FAILURE
(
&
h
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
SYMLNK_TEST_OPEN_FAILURE
(
&
h
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
...
...
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