Nikolay Sivov : shlwapi/tests: Fix some test failures on RTL enabled boxes.

Alexandre Julliard julliard at winehq.org
Fri Jul 30 10:24:16 CDT 2010


Module: wine
Branch: master
Commit: 93985e70a84b718a6a5b6ff32a88f67f1ed09adc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=93985e70a84b718a6a5b6ff32a88f67f1ed09adc

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Jul 30 13:37:00 2010 +0400

shlwapi/tests: Fix some test failures on RTL enabled boxes.

---

 dlls/shlwapi/tests/ordinal.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c
index 0089a43..7b02031 100644
--- a/dlls/shlwapi/tests/ordinal.c
+++ b/dlls/shlwapi/tests/ordinal.c
@@ -2390,13 +2390,15 @@ static void test_SHCreateWorkerWindowA(void)
 
     /* test exstyle */
     ret = GetWindowLongA(hwnd, GWL_EXSTYLE);
-    ok(ret == WS_EX_WINDOWEDGE, "0x%08lx\n", ret);
+    ok(ret == WS_EX_WINDOWEDGE ||
+       ret == (WS_EX_WINDOWEDGE|WS_EX_LAYOUTRTL) /* systems with RTL locale */, "0x%08lx\n", ret);
 
     DestroyWindow(hwnd);
 
     hwnd = pSHCreateWorkerWindowA(0, NULL, WS_EX_TOOLWINDOW, 0, 0, 0);
     ret = GetWindowLongA(hwnd, GWL_EXSTYLE);
-    ok(ret == (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW), "0x%08lx\n", ret);
+    ok(ret == (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW) ||
+       ret == (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_LAYOUTRTL) /* systems with RTL locale */, "0x%08lx\n", ret);
     DestroyWindow(hwnd);
 }
 




More information about the wine-cvs mailing list