Alex Henrie : kernel32/tests: Fix GetNLSVersion test failure on Windows Server 2003.
Alexandre Julliard
julliard at winehq.org
Thu Jun 4 16:08:00 CDT 2020
Module: wine
Branch: master
Commit: e851e747bb2a4e8a32061c3893f1000fd76153ae
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e851e747bb2a4e8a32061c3893f1000fd76153ae
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Wed Jun 3 23:04:28 2020 -0600
kernel32/tests: Fix GetNLSVersion test failure on Windows Server 2003.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/locale.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index c73c4a3f21..5b2f4c2d94 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -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);
More information about the wine-cvs
mailing list