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
9f077358
Commit
9f077358
authored
Sep 16, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix a test on win9x.
parent
c190bdde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
file.c
dlls/kernel32/tests/file.c
+6
-1
No files found.
dlls/kernel32/tests/file.c
View file @
9f077358
...
...
@@ -1614,6 +1614,9 @@ static void test_async_file_errors(void)
strcat
(
szFile
,
"
\\
win.ini"
);
hFile
=
CreateFileA
(
szFile
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
NULL
,
OPEN_ALWAYS
,
FILE_FLAG_OVERLAPPED
,
NULL
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
/* win9x doesn't like FILE_SHARE_DELETE */
hFile
=
CreateFileA
(
szFile
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_ALWAYS
,
FILE_FLAG_OVERLAPPED
,
NULL
);
ok
(
hFile
!=
INVALID_HANDLE_VALUE
,
"CreateFileA(%s ...) failed
\n
"
,
szFile
);
while
(
TRUE
)
{
...
...
@@ -2078,7 +2081,9 @@ static void test_ReplaceFileA(void)
ret
=
GetFileTime
(
hReplacedFile
,
NULL
,
NULL
,
&
ftReplaced
);
ok
(
ret
,
"GetFileTime error (backup %d
\n
"
,
GetLastError
());
ok
(
CompareFileTime
(
&
ftReplaced
,
&
ftReplacement
)
==
0
,
"replaced file has wrong filetime
\n
"
);
"replaced file has wrong filetime %x%08x / %x%08x
\n
"
,
ftReplaced
.
dwHighDateTime
,
ftReplaced
.
dwLowDateTime
,
ftReplacement
.
dwHighDateTime
,
ftReplacement
.
dwLowDateTime
);
CloseHandle
(
hReplacedFile
);
/* re-create replacement file for pass w/o backup (blank) */
...
...
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