kernel32/tests: Fix GetNLSVersion test failure on Windows Server 2003.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Alex Henrie 2020-06-03 23:04:28 -06:00 committed by Alexandre Julliard
parent 3d92885390
commit e851e747bb
1 changed files with 3 additions and 1 deletions

View File

@ -6743,7 +6743,9 @@ static void test_NLSVersion(void)
info.dwNLSVersionInfoSize = sizeof(info);
ret = pGetNLSVersion( 2, LOCALE_USER_DEFAULT, (NLSVERSIONINFO *)&info );
ok( !ret, "GetNLSVersion succeeded\n" );
ok( GetLastError() == ERROR_INVALID_FLAGS, "wrong error %u\n", GetLastError() );
ok( GetLastError() == ERROR_INVALID_FLAGS ||
broken( GetLastError() == ERROR_INSUFFICIENT_BUFFER ), /* win2003 */
"wrong error %u\n", GetLastError() );
SetLastError( 0xdeadbeef );
info.dwNLSVersionInfoSize = sizeof(info);