Huw Davies : riched32/tests: Use the system locale to determine rtl and multibyte behaviour.

Alexandre Julliard julliard at winehq.org
Tue Mar 9 14:55:18 CST 2021


Module: wine
Branch: master
Commit: 638dbc4b20661b5a3ce4c5de19684316cec1e16a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=638dbc4b20661b5a3ce4c5de19684316cec1e16a

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Mar  8 13:45:46 2021 +0000

riched32/tests: Use the system locale to determine rtl and multibyte behaviour.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched32/tests/editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/riched32/tests/editor.c b/dlls/riched32/tests/editor.c
index 950c175bbbe..f361d49478e 100644
--- a/dlls/riched32/tests/editor.c
+++ b/dlls/riched32/tests/editor.c
@@ -53,7 +53,7 @@ static HWND new_richedit(HWND parent) {
 static BOOL is_rtl(void) {
   LOCALESIGNATURE sig;
 
-  return (GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_FONTSIGNATURE,
+  return (GetLocaleInfoA(LOCALE_SYSTEM_DEFAULT, LOCALE_FONTSIGNATURE,
                          (LPSTR) &sig, sizeof(LOCALESIGNATURE)) &&
           (sig.lsUsb[3] & 0x08000000) != 0);
 }
@@ -1440,7 +1440,7 @@ START_TEST( editor )
    * RICHED32.DLL, so the linker doesn't actually link to it. */
   hmoduleRichEdit = LoadLibraryA("riched32.dll");
   ok(hmoduleRichEdit != NULL, "error: %d\n", (int) GetLastError());
-  is_lang_japanese = (PRIMARYLANGID(GetUserDefaultLangID()) == LANG_JAPANESE);
+  is_lang_japanese = (PRIMARYLANGID(GetSystemDefaultLangID()) == LANG_JAPANESE);
 
   test_WM_SETTEXT();
   test_EM_GETTEXTRANGE();




More information about the wine-cvs mailing list