Commit 7d92b1ab authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Check shader for NULL.

parent 749ef9b2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment