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
1887df5c
Commit
1887df5c
authored
Dec 15, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix some directory test failures on Windows.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c372d155
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
directory.c
dlls/ntdll/tests/directory.c
+6
-4
No files found.
dlls/ntdll/tests/directory.c
View file @
1887df5c
...
...
@@ -381,8 +381,9 @@ static void test_NtQueryDirectoryFile_classes( HANDLE handle, UNICODE_STRING *ma
if
(
status
==
STATUS_BUFFER_OVERFLOW
)
{
ok
(
U
(
io
).
Status
==
STATUS_BUFFER_OVERFLOW
,
"%u: wrong status %x
\n
"
,
class
,
U
(
io
).
Status
);
ok
(
U
(
io
).
Information
==
data_size
,
"%u: wrong info %lx
\n
"
,
class
,
U
(
io
).
Information
);
ok
(
data
[
0
]
==
0
,
"%u: wrong offset %x
\n
"
,
class
,
data
[
0
]
);
ok
(
U
(
io
).
Information
==
data_size
||
broken
(
!
U
(
io
).
Information
),
/* win10 1709 */
"%u: wrong info %lx
\n
"
,
class
,
U
(
io
).
Information
);
if
(
U
(
io
).
Information
)
ok
(
data
[
0
]
==
0
,
"%u: wrong offset %x
\n
"
,
class
,
data
[
0
]
);
}
else
{
...
...
@@ -653,11 +654,12 @@ static void test_NtQueryDirectoryFile(void)
memset
(
data
,
0x55
,
data_size
);
U
(
io
).
Status
=
0xdeadbeef
;
U
(
io
).
Information
=
0xdeadbeef
;
status
=
pNtQueryDirectoryFile
(
dirh
,
0
,
NULL
,
NULL
,
&
io
,
data
,
data_size
,
status
=
pNtQueryDirectoryFile
(
dirh
,
0
,
NULL
,
NULL
,
&
io
,
data
,
(
data_size
+
7
)
&
~
7
,
FileBothDirectoryInformation
,
FALSE
,
NULL
,
TRUE
);
ok
(
status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
status
);
ok
(
U
(
io
).
Status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
U
(
io
).
Status
);
ok
(
U
(
io
).
Information
==
data_size
,
"wrong info %lx / %x
\n
"
,
U
(
io
).
Information
,
data_size
);
ok
(
U
(
io
).
Information
==
data_size
||
U
(
io
).
Information
==
((
data_size
+
7
)
&
~
7
),
"wrong info %lx / %x
\n
"
,
U
(
io
).
Information
,
data_size
);
ok
(
fbdi
->
NextEntryOffset
==
((
offsetof
(
FILE_BOTH_DIRECTORY_INFORMATION
,
FileName
[
1
]
)
+
7
)
&
~
7
),
"wrong offset %x
\n
"
,
fbdi
->
NextEntryOffset
);
ok
(
fbdi
->
FileNameLength
==
sizeof
(
WCHAR
),
"wrong length %x
\n
"
,
fbdi
->
FileNameLength
);
...
...
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