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
6670bbf5
Commit
6670bbf5
authored
Mar 06, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add a test for CreateFile called with TRUNCATE_EXISTING/FILE_WRITE_DATA parameters.
parent
d97e7baa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
file.c
dlls/kernel32/tests/file.c
+3
-2
No files found.
dlls/kernel32/tests/file.c
View file @
6670bbf5
...
...
@@ -3550,7 +3550,8 @@ static void test_CreateFile(void)
/* 22*/
{
TRUNCATE_EXISTING
,
0
,
ERROR_INVALID_PARAMETER
,
0
},
/* 23*/
{
TRUNCATE_EXISTING
,
GENERIC_READ
,
ERROR_INVALID_PARAMETER
,
0
},
/* 24*/
{
TRUNCATE_EXISTING
,
GENERIC_WRITE
,
0
,
0
},
/* 25*/
{
TRUNCATE_EXISTING
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
0
}
/* 25*/
{
TRUNCATE_EXISTING
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
0
},
/* 26*/
{
TRUNCATE_EXISTING
,
FILE_WRITE_DATA
,
ERROR_INVALID_PARAMETER
,
0
}
};
char
temp_path
[
MAX_PATH
];
char
file_name
[
MAX_PATH
];
...
...
@@ -3611,7 +3612,7 @@ else
SetLastError
(
0xdeadbeef
);
ret
=
WriteFile
(
hfile
,
&
td
[
i
].
error
,
sizeof
(
td
[
i
].
error
),
&
written
,
NULL
);
if
(
td
[
i
].
access
&
GENERIC_WRITE
)
ok
(
ret
,
"%d: WriteFile error %d
\n
"
,
i
,
GetLastError
());
ok
(
ret
,
"%d: WriteFile error %d
\n
"
,
i
,
GetLastError
());
else
{
ok
(
!
ret
,
"%d: WriteFile should fail
\n
"
,
i
);
...
...
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