Matteo Bruni : d3dcompiler: Check shader for NULL.
Alexandre Julliard
julliard at winehq.org
Wed Jun 17 15:54:03 CDT 2020
Module: wine
Branch: master
Commit: 7d92b1abbd2acc4461a913682188f575b70e5625
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7d92b1abbd2acc4461a913682188f575b70e5625
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Wed Jun 17 17:27:26 2020 +0200
d3dcompiler: Check shader for NULL.
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dcompiler_43/compiler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/compiler.c
index 78fb0c46cc..c400b83d8d 100644
--- a/dlls/d3dcompiler_43/compiler.c
+++ b/dlls/d3dcompiler_43/compiler.c
@@ -805,7 +805,7 @@ static HRESULT compile_shader(const char *preproc_shader, const char *target, co
if (FAILED(blob_hr = D3DCreateBlob(size, &buffer)))
{
HeapFree(GetProcessHeap(), 0, messages);
- if (*shader)
+ if (shader && *shader)
{
ID3D10Blob_Release(*shader);
*shader = NULL;
More information about the wine-cvs
mailing list