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
a4ff7ea2
Commit
a4ff7ea2
authored
Mar 01, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Avoid using the comma operator.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
22e74da9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
directory.c
dlls/ntdll/tests/directory.c
+2
-2
No files found.
dlls/ntdll/tests/directory.c
View file @
a4ff7ea2
...
@@ -619,7 +619,7 @@ static void test_NtQueryDirectoryFile(void)
...
@@ -619,7 +619,7 @@ static void test_NtQueryDirectoryFile(void)
ok
(
filename
[
0
]
==
'.'
&&
filename
[
1
]
==
'.'
,
"incorrect long file name: %s
\n
"
,
ok
(
filename
[
0
]
==
'.'
&&
filename
[
1
]
==
'.'
,
"incorrect long file name: %s
\n
"
,
wine_dbgstr_wn
(
next
->
FileName
,
next
->
FileNameLength
/
sizeof
(
WCHAR
)));
wine_dbgstr_wn
(
next
->
FileName
,
next
->
FileNameLength
/
sizeof
(
WCHAR
)));
data_size
=
fbdi
->
NextEntryOffset
+
offsetof
(
FILE_BOTH_DIRECTORY_INFORMATION
,
FileName
[
1
]
)
,
data_size
=
fbdi
->
NextEntryOffset
+
offsetof
(
FILE_BOTH_DIRECTORY_INFORMATION
,
FileName
[
1
]
)
;
memset
(
data
,
0x55
,
data_size
);
memset
(
data
,
0x55
,
data_size
);
U
(
io
).
Status
=
0xdeadbeef
;
U
(
io
).
Status
=
0xdeadbeef
;
U
(
io
).
Information
=
0xdeadbeef
;
U
(
io
).
Information
=
0xdeadbeef
;
...
@@ -636,7 +636,7 @@ static void test_NtQueryDirectoryFile(void)
...
@@ -636,7 +636,7 @@ static void test_NtQueryDirectoryFile(void)
next
=
(
FILE_BOTH_DIRECTORY_INFORMATION
*
)
&
fbdi
->
FileName
[
1
];
next
=
(
FILE_BOTH_DIRECTORY_INFORMATION
*
)
&
fbdi
->
FileName
[
1
];
ok
(
next
->
NextEntryOffset
==
0x55555555
,
"wrong offset %x
\n
"
,
next
->
NextEntryOffset
);
ok
(
next
->
NextEntryOffset
==
0x55555555
,
"wrong offset %x
\n
"
,
next
->
NextEntryOffset
);
data_size
=
fbdi
->
NextEntryOffset
+
offsetof
(
FILE_BOTH_DIRECTORY_INFORMATION
,
FileName
[
2
]
)
,
data_size
=
fbdi
->
NextEntryOffset
+
offsetof
(
FILE_BOTH_DIRECTORY_INFORMATION
,
FileName
[
2
]
)
;
memset
(
data
,
0x55
,
data_size
);
memset
(
data
,
0x55
,
data_size
);
U
(
io
).
Status
=
0xdeadbeef
;
U
(
io
).
Status
=
0xdeadbeef
;
U
(
io
).
Information
=
0xdeadbeef
;
U
(
io
).
Information
=
0xdeadbeef
;
...
...
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