d3dcompiler: Fix a buffer size computation.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2017-10-07 11:38:58 -05:00 committed by Alexandre Julliard
parent 7bdfb745ea
commit 63d6dce047
1 changed files with 1 additions and 1 deletions

View File

@ -1151,7 +1151,7 @@ preproc_directive: PRE_LINE STRING
hlsl_ctx.line_no = $1;
if (strcmp($2, hlsl_ctx.source_file))
new_array = d3dcompiler_realloc(hlsl_ctx.source_files,
sizeof(*hlsl_ctx.source_files) * hlsl_ctx.source_files_count + 1);
sizeof(*hlsl_ctx.source_files) * (hlsl_ctx.source_files_count + 1));
if (new_array)
{