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
871ab512
Commit
871ab512
authored
May 18, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Use the correct flags for NtOpenFile.
parent
b3913c4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
directory.c
dlls/ntdll/tests/directory.c
+1
-1
om.c
dlls/ntdll/tests/om.c
+5
-3
No files found.
dlls/ntdll/tests/directory.c
View file @
871ab512
...
...
@@ -180,7 +180,7 @@ static void test_flags_NtQueryDirectoryFile(OBJECT_ATTRIBUTES *attr, const char
data_size
=
mask
?
offsetof
(
FILE_BOTH_DIRECTORY_INFORMATION
,
FileName
[
256
]
)
:
sizeof
(
data
);
/* Read the directory and note which files are found */
status
=
pNtOpenFile
(
&
dirh
,
SYNCHRONIZE
|
FILE_LIST_DIRECTORY
,
attr
,
&
io
,
FILE_
OPEN
,
status
=
pNtOpenFile
(
&
dirh
,
SYNCHRONIZE
|
FILE_LIST_DIRECTORY
,
attr
,
&
io
,
FILE_
SHARE_READ
,
FILE_SYNCHRONOUS_IO_NONALERT
|
FILE_OPEN_FOR_BACKUP_INTENT
|
FILE_DIRECTORY_FILE
);
ok
(
status
==
STATUS_SUCCESS
,
"failed to open dir '%s', ret 0x%x, error %d
\n
"
,
testdirA
,
status
,
GetLastError
());
if
(
status
!=
STATUS_SUCCESS
)
{
...
...
dlls/ntdll/tests/om.c
View file @
871ab512
...
...
@@ -150,7 +150,7 @@ static void test_namespace_pipe(void)
pRtlInitUnicodeString
(
&
str
,
buffer3
);
InitializeObjectAttributes
(
&
attr
,
&
str
,
0
,
0
,
NULL
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_OPEN
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
0
);
ok
(
status
==
STATUS_OBJECT_PATH_NOT_FOUND
||
status
==
STATUS_PIPE_NOT_AVAILABLE
||
status
==
STATUS_OBJECT_NAME_INVALID
||
/* vista */
...
...
@@ -159,7 +159,7 @@ static void test_namespace_pipe(void)
pRtlInitUnicodeString
(
&
str
,
buffer4
);
InitializeObjectAttributes
(
&
attr
,
&
str
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_OPEN
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
0
);
ok
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
||
status
==
STATUS_OBJECT_NAME_INVALID
,
/* vista */
"NtOpenFile should have failed with STATUS_OBJECT_NAME_NOT_FOUND got(%08x)
\n
"
,
status
);
...
...
@@ -657,7 +657,9 @@ static void test_symboliclink(void)
pRtlFreeUnicodeString
(
&
target
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test-link
\\
NUL"
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_OPEN
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
0
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"Failed to open NUL device(%08x)
\n
"
,
status
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_DIRECTORY_FILE
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"Failed to open NUL device(%08x)
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
...
...
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