Mike McCormack : ole32: FreePropVariantArray should return an error if rgvars is null.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 14 05:16:23 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Mon Aug 14 14:06:36 2006 +0900

ole32: FreePropVariantArray should return an error if rgvars is null.

As suggested by Rob Shearman.

---

 dlls/ole32/ole2.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index fe70da0..31bc5f4 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -2826,6 +2826,9 @@ HRESULT WINAPI FreePropVariantArray(ULON
 
     TRACE("(%lu, %p)\n", cVariants, rgvars);
 
+    if (!rgvars)
+        return E_INVALIDARG;
+
     for(i = 0; i < cVariants; i++)
         PropVariantClear(&rgvars[i]);
 




More information about the wine-cvs mailing list