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
3dd6c9a6
Commit
3dd6c9a6
authored
Dec 04, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix a few test failures on Windows in the open by id test.
parent
866db819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
file.c
dlls/ntdll/tests/file.c
+9
-2
No files found.
dlls/ntdll/tests/file.c
View file @
3dd6c9a6
...
...
@@ -199,7 +199,9 @@ static void open_file_test(void)
nameW
.
Length
+=
sizeof
(
WCHAR
);
status
=
pNtOpenFile
(
&
handle
,
GENERIC_READ
,
&
attr
,
&
io
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_DIRECTORY_FILE
);
ok
(
status
==
STATUS_INVALID_PARAMETER
||
status
==
STATUS_OBJECT_PATH_SYNTAX_BAD
,
/* nt4 */
ok
(
status
==
STATUS_INVALID_PARAMETER
||
status
==
STATUS_OBJECT_NAME_INVALID
||
status
==
STATUS_OBJECT_PATH_SYNTAX_BAD
,
"open %s failed %x
\n
"
,
wine_dbgstr_w
(
nameW
.
Buffer
),
status
);
if
(
!
status
)
CloseHandle
(
handle
);
...
...
@@ -228,8 +230,13 @@ static void open_file_test(void)
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_OPEN_BY_FILE_ID
|
((
info
->
FileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
?
FILE_DIRECTORY_FILE
:
0
)
);
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_ACCESS_DENIED
,
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_ACCESS_DENIED
||
status
==
STATUS_NOT_IMPLEMENTED
,
"open %s failed %x
\n
"
,
wine_dbgstr_w
(
info
->
FileName
),
status
);
if
(
status
==
STATUS_NOT_IMPLEMENTED
)
{
win_skip
(
"FILE_OPEN_BY_FILE_ID not supported
\n
"
);
break
;
}
if
(
!
status
)
{
FILE_ALL_INFORMATION
all_info
;
...
...
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