Commit 87cf6b36 authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

shlwapi/tests: Fix tests on Win7.

parent ecd17659
...@@ -133,6 +133,12 @@ static void test_GetAcceptLanguagesA(void) ...@@ -133,6 +133,12 @@ static void test_GetAcceptLanguagesA(void)
ok(buffersize2 == strlen(buffer), ok(buffersize2 == strlen(buffer),
"buffer content (length) wrong: got %08x, expected %08x\n", lstrlenA(buffer), buffersize2); "buffer content (length) wrong: got %08x, expected %08x\n", lstrlenA(buffer), buffersize2);
break; break;
case __HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER): /* Win7 */
ok(buffersize == 0,
"buffersize wrong: got %08x, expected 0 (2nd parameter;Win2k)\n", buffersize);
ok(ERROR_INSUFFICIENT_BUFFER == GetLastError(),
"last error wrong: got %u; expected ERROR_INSUFFICIENT_BUFFER\n", GetLastError());
break;
default: default:
ok( 0, "retval %08x, size %08x, buffer (%s), last error %u\n", ok( 0, "retval %08x, size %08x, buffer (%s), last error %u\n",
retval, buffersize, buffer, GetLastError()); retval, buffersize, buffer, GetLastError());
...@@ -163,6 +169,12 @@ static void test_GetAcceptLanguagesA(void) ...@@ -163,6 +169,12 @@ static void test_GetAcceptLanguagesA(void)
ok(buffersize2 == strlen(buffer), ok(buffersize2 == strlen(buffer),
"buffer content (length) wrong: got %08x, expected %08x\n", lstrlenA(buffer), buffersize2); "buffer content (length) wrong: got %08x, expected %08x\n", lstrlenA(buffer), buffersize2);
break; break;
case __HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER): /* Win 7 */
ok(buffersize == 0,
"buffersize wrong: got %08x, expected 0 (2nd parameter;Win2k)\n", buffersize);
ok(ERROR_INSUFFICIENT_BUFFER == GetLastError(),
"last error wrong: got %u; expected ERROR_INSUFFICIENT_BUFFER\n", GetLastError());
break;
default: default:
ok( 0, "retval %08x, size %08x, buffer (%s), last error %u\n", ok( 0, "retval %08x, size %08x, buffer (%s), last error %u\n",
retval, buffersize, buffer, GetLastError()); retval, buffersize, buffer, GetLastError());
......
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