Robert Shearman : ole32: Check for pcbSize parameter of CompositeMonikerImpl_GetSizeMax being NULL, rather than non-NULL.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Apr 7 08:05:42 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Apr  7 11:20:09 2006 +0100

ole32: Check for pcbSize parameter of CompositeMonikerImpl_GetSizeMax being NULL, rather than non-NULL.

---

 dlls/ole32/compositemoniker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c
index 99dd27b..4e9d763 100644
--- a/dlls/ole32/compositemoniker.c
+++ b/dlls/ole32/compositemoniker.c
@@ -333,7 +333,7 @@ CompositeMonikerImpl_GetSizeMax(IMoniker
 
     TRACE("(%p,%p)\n",iface,pcbSize);
 
-    if (pcbSize!=NULL)
+    if (!pcbSize)
         return E_POINTER;
 
     pcbSize->u.LowPart =0;




More information about the wine-cvs mailing list