Commit 3cdd1abd authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

ole32: Avoid erroneously freeing a variable in ReadFmtUserTypeStg.

parent 96c9b0fb
...@@ -8771,7 +8771,10 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp ...@@ -8771,7 +8771,10 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp
*pcf = RegisterClipboardFormatW( szOleTypeName ); *pcf = RegisterClipboardFormatW( szOleTypeName );
if( lplpszUserType ) if( lplpszUserType )
{
*lplpszUserType = szCLSIDName; *lplpszUserType = szCLSIDName;
szCLSIDName = NULL;
}
end: end:
CoTaskMemFree( szCLSIDName ); CoTaskMemFree( szCLSIDName );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment