Zebediah Figura : vkd3d-utils: Initialize "messages_blob" to NULL in D3DPreprocess().

Alexandre Julliard julliard at winehq.org
Mon Nov 23 15:41:30 CST 2020

Module: vkd3d
Branch: master
Commit: dc36245be26b6509aa13a57129e782d2ce1a8e92
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=dc36245be26b6509aa13a57129e782d2ce1a8e92

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Sat Nov 21 17:23:43 2020 -0600

vkd3d-utils: Initialize "messages_blob" to NULL in D3DPreprocess().

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>


 libs/vkd3d-utils/vkd3d_utils_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/vkd3d-utils/vkd3d_utils_main.c b/libs/vkd3d-utils/vkd3d_utils_main.c
index 9b608f6..f799d0a 100644
--- a/libs/vkd3d-utils/vkd3d_utils_main.c
+++ b/libs/vkd3d-utils/vkd3d_utils_main.c
@@ -268,6 +268,9 @@ HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename
     TRACE("data %p, size %lu, filename %s, macros %p, include %p, preprocessed_blob %p, messages_blob %p.\n",
             data, size, debugstr_a(filename), macros, include, preprocessed_blob, messages_blob);
+    if (messages_blob)
+        *messages_blob = NULL;
     compile_info.next = &preprocess_info;
     compile_info.source.code = data;

More information about the wine-cvs mailing list