Marcus Meissner : d3dx9/tests: Fix string size to MultiByteToWideChar().

Alexandre Julliard julliard at winehq.org
Wed Jun 27 16:04:36 CDT 2018


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Jun 25 21:00:12 2018 +0200

d3dx9/tests: Fix string size to MultiByteToWideChar().

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dx9_36/tests/effect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c
index d9ff11e..5fd9227 100644
--- a/dlls/d3dx9_36/tests/effect.c
+++ b/dlls/d3dx9_36/tests/effect.c
@@ -7762,7 +7762,7 @@ static void test_create_effect_from_file(void)
     filename_size -= sizeof("effect1.fx") - 1;
     memcpy(effect_path, filename, filename_size);
     effect_path[filename_size] = 0;
-    MultiByteToWideChar(CP_ACP, 0, effect_path, -1, effect_path_w, sizeof(effect_path_w));
+    MultiByteToWideChar(CP_ACP, 0, effect_path, -1, effect_path_w, ARRAY_SIZE(effect_path_w));
 
     create_directory("include");
     create_file("effect2.fx", effect2, sizeof(effect2) - 1, NULL);




More information about the wine-cvs mailing list