From b12381a04a4183f046cc70113db094f79d54db3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Mon, 22 Sep 2014 20:46:51 +0200 Subject: [PATCH] dwrite: Check correct variable (Coverity). --- dlls/dwrite/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c index c6262011ea2..ec7f92dd310 100644 --- a/dlls/dwrite/main.c +++ b/dlls/dwrite/main.c @@ -364,7 +364,7 @@ HRESULT clone_localizedstring(IDWriteLocalizedStrings *iface, IDWriteLocalizedSt *strings = NULL; New = heap_alloc(sizeof(struct localizedstrings)); - if (!This) return E_OUTOFMEMORY; + if (!New) return E_OUTOFMEMORY; New->IDWriteLocalizedStrings_iface.lpVtbl = &localizedstringsvtbl; New->ref = 1;