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:
Sven Baars 2020-08-02 19:20:21 +02:00 committed by Alexandre Julliard
parent 333a867f75
commit bb8d23d563
1 changed files with 1 additions and 1 deletions

View File

@ -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);