From d9908d2abd12f0f28b2614e23d28d15e1f446b97 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 4 Mar 2011 10:43:42 +0100 Subject: [PATCH] oleaut32: Local variable goes out of scope via pointer (Coverity). --- dlls/oleaut32/olefont.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index f86ef20fa82..e65504c8684 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -338,6 +338,7 @@ HRESULT WINAPI OleCreateFontIndirect( { OLEFontImpl* newFont = 0; HRESULT hr = S_OK; + FONTDESC fd; TRACE("(%p, %s, %p)\n", lpFontDesc, debugstr_guid(riid), ppvObj); /* @@ -349,8 +350,6 @@ HRESULT WINAPI OleCreateFontIndirect( *ppvObj = 0; if (!lpFontDesc) { - FONTDESC fd; - static WCHAR fname[] = { 'S','y','s','t','e','m',0 }; fd.cbSizeofstruct = sizeof(fd);