Commit bb8d23d5 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

prntvpt: Fix a null check (Coverity).

parent 333a867f
......@@ -740,7 +740,7 @@ HRESULT WINAPI PTConvertPrintTicketToDevMode(HPTPROVIDER provider, IStream *stre
if (hr != S_OK) return hr;
*dm = heap_alloc(sizeof(**dm));
if (!dm) return E_OUTOFMEMORY;
if (!*dm) return E_OUTOFMEMORY;
ticket_to_devmode(&ticket, *dm);
*size = sizeof(**dm);
......
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