Module: wine Branch: master Commit: d9908d2abd12f0f28b2614e23d28d15e1f446b97 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9908d2abd12f0f28b2614e23d...
Author: Marcus Meissner meissner@suse.de Date: Fri Mar 4 10:43:42 2011 +0100
oleaut32: Local variable goes out of scope via pointer (Coverity).
---
dlls/oleaut32/olefont.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index f86ef20..e65504c 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);