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
a3d6d9c2
Commit
a3d6d9c2
authored
Feb 06, 2017
by
Christian Inci
Committed by
Alexandre Julliard
Feb 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add test for SetFileTime.
Signed-off-by:
Christian Inci
<
chris.pcguy.inci@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7118753
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
file.c
dlls/kernel32/tests/file.c
+12
-0
No files found.
dlls/kernel32/tests/file.c
View file @
a3d6d9c2
...
...
@@ -3898,6 +3898,18 @@ todo_wine_if (i == 1)
ok
(
!
ret
,
"%d: WriteFile should fail
\n
"
,
i
);
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"%d: expected ERROR_ACCESS_DENIED, got %d
\n
"
,
i
,
GetLastError
());
}
SetLastError
(
0xdeadbeef
);
ret
=
SetFileTime
(
hfile
,
NULL
,
NULL
,
NULL
);
if
(
td
[
i
].
access
&
GENERIC_WRITE
)
/* actually FILE_WRITE_ATTRIBUTES */
ok
(
ret
,
"%d: SetFileTime error %d
\n
"
,
i
,
GetLastError
());
else
{
todo_wine
{
ok
(
!
ret
,
"%d: SetFileTime should fail
\n
"
,
i
);
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"%d: expected ERROR_ACCESS_DENIED, got %d
\n
"
,
i
,
GetLastError
());
}
}
CloseHandle
(
hfile
);
}
else
...
...
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