shlwapi/tests: Fix GLE for SHFormatDateTimeA.

This commit is contained in:
André Hentschel 2010-07-19 19:11:04 +02:00 committed by Alexandre Julliard
parent fb88e06e79
commit f42ede788e
1 changed files with 2 additions and 1 deletions

View File

@ -1589,7 +1589,8 @@ if (0)
SetLastError(0xdeadbeef);
ret = pSHFormatDateTimeA(&filetime, NULL, NULL, 0);
ok(ret == 0, "got %d\n", ret);
ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %d\n", GetLastError());
ok(GetLastError() == 0xdeadbeef || broken(GetLastError() == ERROR_SUCCESS /* Win7 */),
"expected 0xdeadbeef, got %d\n", GetLastError());
SetLastError(0xdeadbeef);
buff[0] = 'a'; buff[1] = 0;