mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 10:36:58 +00:00
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;
|
hlsl_ctx.line_no = $1;
|
||||||
if (strcmp($2, hlsl_ctx.source_file))
|
if (strcmp($2, hlsl_ctx.source_file))
|
||||||
new_array = d3dcompiler_realloc(hlsl_ctx.source_files,
|
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)
|
if (new_array)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue