prntvpt: Fix a null check (Coverity).
Signed-off-by: Sven Baars <sbaars@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
333a867f75
commit
bb8d23d563
|
@ -740,7 +740,7 @@ HRESULT WINAPI PTConvertPrintTicketToDevMode(HPTPROVIDER provider, IStream *stre
|
||||||
if (hr != S_OK) return hr;
|
if (hr != S_OK) return hr;
|
||||||
|
|
||||||
*dm = heap_alloc(sizeof(**dm));
|
*dm = heap_alloc(sizeof(**dm));
|
||||||
if (!dm) return E_OUTOFMEMORY;
|
if (!*dm) return E_OUTOFMEMORY;
|
||||||
|
|
||||||
ticket_to_devmode(&ticket, *dm);
|
ticket_to_devmode(&ticket, *dm);
|
||||||
*size = sizeof(**dm);
|
*size = sizeof(**dm);
|
||||||
|
|
Loading…
Reference in New Issue