msvcrt/tests: Don't test function directly when reporting GetLastError().
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ad40af14ac
commit
9f561f0089
|
@ -878,9 +878,10 @@ static void test_clock(void)
|
|||
static const int THRESH = 100;
|
||||
FILETIME start, cur;
|
||||
int c, expect;
|
||||
BOOL ret;
|
||||
|
||||
ok(GetProcessTimes(GetCurrentProcess(), &start, &cur, &cur, &cur),
|
||||
"GetProcessTimes failed with error: %d\n", GetLastError());
|
||||
ret = GetProcessTimes(GetCurrentProcess(), &start, &cur, &cur, &cur);
|
||||
ok(ret, "GetProcessTimes failed with error: %d\n", GetLastError());
|
||||
GetSystemTimeAsFileTime(&cur);
|
||||
expect = (((LONGLONG)cur.dwHighDateTime<<32)+cur.dwLowDateTime -
|
||||
((LONGLONG)start.dwHighDateTime<<32)-start.dwLowDateTime) / 10000;
|
||||
|
|
Loading…
Reference in New Issue