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
7676e9b8
Commit
7676e9b8
authored
Mar 17, 2005
by
Jakob Eriksson
Committed by
Alexandre Julliard
Mar 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More trace info.
parent
f7be545e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
time.c
dlls/kernel/tests/time.c
+10
-4
No files found.
dlls/kernel/tests/time.c
View file @
7676e9b8
...
...
@@ -121,15 +121,18 @@ static void test_invalid_arg()
FILETIME
ft
;
SYSTEMTIME
st
;
memset
(
&
ft
,
0
,
sizeof
ft
);
/* Invalid argument checks */
ft
.
dwHighDateTime
=
12345
;
ft
.
dwLowDateTime
=
12345
;
todo_wine
{
ok
(
!
DosDateTimeToFileTime
(
0
,
0
,
&
ft
),
/* invalid dos date/time */
"DosDateTimeToFileTime() didn't fail
\n
"
);
ok
(
0
==
DosDateTimeToFileTime
(
0
,
0
,
&
ft
),
"Invalid DOS date/time, DosDateTimeToFileTime() didn't fail!
\n
"
"ft.dwHighDateTime=%d, ft.dwLowDateTime=%d.
\n\n
"
,
(
int
)
ft
.
dwHighDateTime
,
(
int
)
ft
.
dwLowDateTime
);
}
memset
(
&
ft
,
0
,
sizeof
ft
);
ok
(
DosDateTimeToFileTime
(
DOS_DATE
(
1980
,
1
,
1
),
DOS_TIME
(
0
,
0
,
0
),
&
ft
),
/* this is 1 Jan 1980 00:00:00 */
"DosDateTimeToFileTime() failed
\n
"
);
...
...
@@ -150,7 +153,10 @@ static void test_invalid_arg()
SETUP_1980
(
st
)
st
.
wDay
=
0
;
ok
(
!
SystemTimeToFileTime
(
&
st
,
&
ft
),
"bad day
\n
"
);
ft
.
dwHighDateTime
=
11111
;
ft
.
dwLowDateTime
=
22222
;
ok
(
0
==
SystemTimeToFileTime
(
&
st
,
&
ft
),
"SystemTimeToFileTime() succeded unexpectedly!
\n
"
"ft.dwHighDateTime=%d, ft.dwLowDateTime=%d.
\n\n
"
,
(
int
)
ft
.
dwHighDateTime
,
(
int
)
ft
.
dwLowDateTime
);
/* with a bad hour */
SETUP_1980
(
st
)
...
...
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