Module: wine Branch: master Commit: 3cdd1abd09b0292955730dac2e03a831cffa0b5a URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cdd1abd09b0292955730dac2e...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Sat Nov 10 10:33:49 2012 +0100
ole32: Avoid erroneously freeing a variable in ReadFmtUserTypeStg.
---
dlls/ole32/storage32.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 8498eaf..3bf3216 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -8771,7 +8771,10 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp *pcf = RegisterClipboardFormatW( szOleTypeName );
if( lplpszUserType ) + { *lplpszUserType = szCLSIDName; + szCLSIDName = NULL; + }
end: CoTaskMemFree( szCLSIDName );