ole32: Avoid erroneously freeing a variable in ReadFmtUserTypeStg.

oldstable
Frédéric Delanoy 2012-11-10 10:33:49 +01:00 committed by Alexandre Julliard
parent 96c9b0fb84
commit 3cdd1abd09
1 changed files with 3 additions and 0 deletions

View File

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