d3dcompiler: Check shader for NULL.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
749ef9b218
commit
7d92b1abbd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue