Module: wine Branch: master Commit: 918cf3261b2790b96c76fc544b9e88bc2dc9653b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=918cf3261b2790b96c76fc54...
Author: Mike McCormack mike@codeweavers.com Date: Wed Jul 12 15:26:01 2006 +0900
ole32: Don't warn when clearing PropVariants that don't have allocated memory.
---
dlls/ole32/ole2.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 3a8be57..d0f4a78 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2572,6 +2572,23 @@ HRESULT WINAPI PropVariantClear(PROPVARI
switch(pvar->vt) { + case VT_EMPTY: + case VT_NULL: + case VT_I2: + case VT_I4: + case VT_R4: + case VT_R8: + case VT_CY: + case VT_DATE: + case VT_ERROR: + case VT_BOOL: + case VT_UI1: + case VT_UI2: + case VT_UI4: + case VT_I8: + case VT_UI8: + case VT_FILETIME: + break; case VT_STREAM: case VT_STREAMED_OBJECT: case VT_STORAGE: @@ -2594,7 +2611,7 @@ HRESULT WINAPI PropVariantClear(PROPVARI if (pvar->u.bstrVal) PropSysFreeString(pvar->u.bstrVal); break; - case VT_CF: + case VT_CF: if (pvar->u.pclipdata) { OLE_FreeClipDataArray(1, pvar->u.pclipdata);