Zebediah Figura : d3dcompiler: Fix a buffer size computation.
Alexandre Julliard
julliard at winehq.org
Mon Oct 9 14:28:41 CDT 2017
Module: wine
Branch: master
Commit: 63d6dce04746237c1cb39c22914ed666c55178e1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=63d6dce04746237c1cb39c22914ed666c55178e1
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat Oct 7 11:38:58 2017 -0500
d3dcompiler: Fix a buffer size computation.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dcompiler_43/hlsl.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y
index c5f66d6..c2c415f 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -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)
{
More information about the wine-cvs
mailing list