[PATCH] d3dx9_36: fixed size to MBtoWC

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] d3dx9_36: fixed size to MBtoWC

Marcus Meissner-4
Signed-off-by: Marcus Meissner <[hidden email]>
---
 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