[PATCH] d3dx9_36: fixed size to MBtoWC

Marcus Meissner marcus at jet.franken.de
Mon Jun 25 14:00:12 CDT 2018


Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
---
 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 d9ff11eaea..5fd922747a 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);
-- 
2.17.1




More information about the wine-patches mailing list