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
3fdf6024
Commit
3fdf6024
authored
Oct 30, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix some test failures on Win9x/NT4.
parent
558057b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
encode.c
dlls/crypt32/tests/encode.c
+13
-4
No files found.
dlls/crypt32/tests/encode.c
View file @
3fdf6024
...
...
@@ -469,7 +469,8 @@ static void testTimeEncoding(DWORD dwEncoding, LPCSTR structType,
}
}
else
ok
((
!
ret
&&
GetLastError
()
==
CRYPT_E_BAD_ENCODE
)
||
broken
(
ret
),
ok
((
!
ret
&&
GetLastError
()
==
CRYPT_E_BAD_ENCODE
)
||
broken
(
GetLastError
()
==
ERROR_SUCCESS
),
"Expected CRYPT_E_BAD_ENCODE, got 0x%08x
\n
"
,
GetLastError
());
}
...
...
@@ -498,13 +499,20 @@ static void compareTime(const SYSTEMTIME *expected, const FILETIME *got)
SYSTEMTIME
st
;
FileTimeToSystemTime
(
got
,
&
st
);
ok
(
expected
->
wYear
==
st
.
wYear
&&
ok
(
(
expected
->
wYear
==
st
.
wYear
&&
expected
->
wMonth
==
st
.
wMonth
&&
expected
->
wDay
==
st
.
wDay
&&
expected
->
wHour
==
st
.
wHour
&&
expected
->
wMinute
==
st
.
wMinute
&&
expected
->
wSecond
==
st
.
wSecond
&&
abs
(
expected
->
wMilliseconds
-
st
.
wMilliseconds
)
<=
1
,
abs
(
expected
->
wMilliseconds
-
st
.
wMilliseconds
)
<=
1
)
||
/* Some Windows systems only seem to be accurate in their time decoding to
* within about an hour.
*/
broken
(
expected
->
wYear
==
st
.
wYear
&&
expected
->
wMonth
==
st
.
wMonth
&&
expected
->
wDay
==
st
.
wDay
&&
abs
(
expected
->
wHour
-
st
.
wHour
)
<=
1
),
"Got unexpected value for time decoding:
\n
expected %s, got %s
\n
"
,
printSystemTime
(
expected
),
printFileTime
(
got
));
}
...
...
@@ -524,7 +532,8 @@ static void testTimeDecoding(DWORD dwEncoding, LPCSTR structType,
if
(
structType
==
X509_CHOICE_OF_TIME
||
(
time
->
sysTime
.
wYear
>=
1950
&&
time
->
sysTime
.
wYear
<=
2050
))
{
ok
(
ret
,
"CryptDecodeObjectEx failed: %d (0x%08x)
\n
"
,
GetLastError
(),
ok
(
ret
||
broken
(
GetLastError
()
==
OSS_DATA_ERROR
),
"CryptDecodeObjectEx failed: %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
if
(
ret
)
compareTime
(
&
time
->
sysTime
,
&
ft
);
...
...
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