Aric Stewart : usp10/tests: Having numbers in the ScriptStringXtoCP tests causes unpredictable behavior .

Alexandre Julliard julliard at winehq.org
Wed Jun 16 13:23:21 CDT 2010


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Wed Jun 16 15:12:44 2010 +0900

usp10/tests: Having numbers in the ScriptStringXtoCP tests causes unpredictable behavior.

---

 dlls/usp10/tests/usp10.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index e47d7c5..8b1f603 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -1243,7 +1243,7 @@ static void test_ScriptStringXtoCP_CPtoX(HDC hdc)
  */
 
     HRESULT         hr;
-    WCHAR           teststr1[] = {'T', 'e', 's', 't', 'e', '1', '2', ' ', 'a', '\0'};
+    WCHAR           teststr1[] = {'T', 'e', 's', 't', 'e', 'a', 'b', ' ', 'a', '\0'};
     void            *String = (WCHAR *) &teststr1;      /* ScriptStringAnalysis needs void */
     int             String_len = (sizeof(teststr1)/sizeof(WCHAR))-1;
     int             Glyphs = String_len * 2 + 16;       /* size of buffer as recommended  */




More information about the wine-cvs mailing list