Commit 2448b8da authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

shlwapi/tests: Fix a test failure on NT4.

parent a26c3bc0
...@@ -1683,10 +1683,11 @@ if (0) ...@@ -1683,10 +1683,11 @@ if (0)
flags = FDTF_SHORTDATE | FDTF_LTRDATE | FDTF_RTLDATE; flags = FDTF_SHORTDATE | FDTF_LTRDATE | FDTF_RTLDATE;
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
buff[0] = 0; /* NT4 doesn't clear the buffer on failure */
ret = pSHFormatDateTimeW(&filetime, &flags, buff, sizeof(buff)/sizeof(WCHAR)); ret = pSHFormatDateTimeW(&filetime, &flags, buff, sizeof(buff)/sizeof(WCHAR));
ok(ret == lstrlenW(buff)+1, "got %d\n", ret); ok(ret == lstrlenW(buff)+1, "got %d\n", ret);
ok(GetLastError() == 0xdeadbeef || ok(GetLastError() == 0xdeadbeef ||
broken(GetLastError() == ERROR_INVALID_FLAGS), /* Win9x/WinMe */ broken(GetLastError() == ERROR_INVALID_FLAGS), /* Win9x/WinMe/NT4 */
"expected 0xdeadbeef, got %d\n", GetLastError()); "expected 0xdeadbeef, got %d\n", GetLastError());
/* now check returned strings */ /* now check returned strings */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment