=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: ole32: Avoid erroneously freeing a variable in ReadFmtUserTypeStg.

Alexandre Julliard julliard at winehq.org
Mon Nov 12 14:14:40 CST 2012


Module: wine
Branch: master
Commit: 3cdd1abd09b0292955730dac2e03a831cffa0b5a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3cdd1abd09b0292955730dac2e03a831cffa0b5a

Author: Frédéric Delanoy <frederic.delanoy at 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 );




More information about the wine-cvs mailing list