Commit 0caef454 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 53266ac3
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment