[4/5] mlang: Do not use MAX_PATH for not path related things.

Dmitry Timoshkov dmitry at codeweavers.com
Sun Aug 3 00:22:12 CDT 2008


Hello,

Changelog:
    mlang: Do not use MAX_PATH for not path related things.
---
 dlls/mlang/tests/mlang.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index 875cfac..ee2bd21 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -70,15 +70,14 @@ static BOOL init_function_ptrs(void)
 
 #define TRACE_2 OutputDebugStringA
 
-static CHAR string1[MAX_PATH], string2[MAX_PATH];
-
 #define ok_w2(format, szString1, szString2) \
 \
-    if (lstrcmpW(szString1, szString2) != 0) \
+    if (lstrcmpW((szString1), (szString2)) != 0) \
     { \
-        WideCharToMultiByte(CP_ACP, 0, szString1, -1, string1, MAX_PATH, NULL, NULL); \
-        WideCharToMultiByte(CP_ACP, 0, szString2, -1, string2, MAX_PATH, NULL, NULL); \
-        ok(0, format, string1, string2); \
+        CHAR string1[256], string2[256]; \
+        WideCharToMultiByte(CP_ACP, 0, (szString1), -1, string1, 256, NULL, NULL); \
+        WideCharToMultiByte(CP_ACP, 0, (szString2), -1, string2, 256, NULL, NULL); \
+        ok(0, (format), string1, string2); \
     }
 
 static void test_multibyte_to_unicode_translations(IMultiLanguage2 *iML2)
-- 
1.5.6.4






More information about the wine-patches mailing list