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:
parent
7bdfb745ea
commit
63d6dce047
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue