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
324984ef
Commit
324984ef
authored
Feb 22, 2010
by
Stefan Leichter
Committed by
Alexandre Julliard
Feb 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Test NtCreateFile with an invalid filename.
parent
de006dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
file.c
dlls/ntdll/tests/file.c
+17
-0
No files found.
dlls/ntdll/tests/file.c
View file @
324984ef
...
...
@@ -155,6 +155,8 @@ static void WINAPI apc( void *arg, IO_STATUS_BLOCK *iosb, ULONG reserved )
static
void
create_file_test
(
void
)
{
static
const
WCHAR
systemrootW
[]
=
{
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'R'
,
'o'
,
'o'
,
't'
,
'\\'
,
'f'
,
'a'
,
'i'
,
'l'
,
'i'
,
'n'
,
'g'
,
0
};
NTSTATUS
status
;
HANDLE
dir
;
WCHAR
path
[
MAX_PATH
];
...
...
@@ -231,6 +233,21 @@ static void create_file_test(void)
"open %s failed %x
\n
"
,
wine_dbgstr_w
(
nameW
.
Buffer
),
status
);
pRtlFreeUnicodeString
(
&
nameW
);
pRtlInitUnicodeString
(
&
nameW
,
systemrootW
);
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
NULL
;
attr
.
ObjectName
=
&
nameW
;
attr
.
Attributes
=
OBJ_CASE_INSENSITIVE
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
dir
=
NULL
;
status
=
pNtCreateFile
(
&
dir
,
FILE_APPEND_DATA
,
&
attr
,
&
io
,
NULL
,
FILE_ATTRIBUTE_NORMAL
,
0
,
FILE_OPEN_IF
,
FILE_SYNCHRONOUS_IO_NONALERT
,
NULL
,
0
);
todo_wine
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"open %s failed %x
\n
"
,
wine_dbgstr_w
(
nameW
.
Buffer
),
status
);
pRtlFreeUnicodeString
(
&
nameW
);
}
static
void
open_file_test
(
void
)
...
...
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