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
c7bbf365
Commit
c7bbf365
authored
Jul 09, 2010
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Handle error cases in om test (Coverity).
parent
93f92d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
om.c
dlls/ntdll/tests/om.c
+5
-1
No files found.
dlls/ntdll/tests/om.c
View file @
c7bbf365
...
...
@@ -419,9 +419,12 @@ static void test_directory(void)
memset
(
buffer
,
0xaa
,
sizeof
(
buffer
)
);
status
=
pNtQuerySymbolicLinkObject
(
dir
,
&
str
,
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQuerySymbolicLinkObject failed %08x
\n
"
,
status
);
if
(
status
!=
STATUS_SUCCESS
)
goto
error
;
full_len
=
str
.
Length
+
sizeof
(
WCHAR
);
ok
(
len
==
full_len
,
"bad length %u/%u
\n
"
,
len
,
full_len
);
ok
(
buffer
[
len
/
sizeof
(
WCHAR
)
-
1
]
==
0
,
"no terminating null
\n
"
);
if
(
len
==
full_len
)
ok
(
buffer
[
len
/
sizeof
(
WCHAR
)
-
1
]
==
0
,
"no terminating null
\n
"
);
str
.
MaximumLength
=
str
.
Length
;
len
=
0xdeadbeef
;
...
...
@@ -441,6 +444,7 @@ static void test_directory(void)
ok
(
status
==
STATUS_SUCCESS
,
"NtQuerySymbolicLinkObject failed %08x
\n
"
,
status
);
ok
(
len
==
full_len
,
"bad length %u/%u
\n
"
,
len
,
full_len
);
error:
pNtClose
(
dir
);
}
...
...
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