kernel32/tests: On Windows 8 IdnToNameprepUnicode() returns a different error for invalid parameters.

This commit is contained in:
Francois Gouget 2013-11-01 10:34:01 +01:00 committed by Alexandre Julliard
parent 62122b660f
commit 62ddaf8f6a
1 changed files with 2 additions and 1 deletions

View File

@ -3244,7 +3244,8 @@ static void test_IdnToNameprepUnicode(void)
ret = pIdnToNameprepUnicode(4, NULL, 0, NULL, 0);
err = GetLastError();
ok(ret == 0, "ret = %d\n", ret);
ok(err == ERROR_INVALID_FLAGS, "err = %d\n", err);
ok(err == ERROR_INVALID_FLAGS || err == ERROR_INVALID_PARAMETER /* Win8 */,
"err = %d\n", err);
for (i=0; i<sizeof(test_data)/sizeof(*test_data); i++)
{