Robert Shearman : oleaut32: Improve dump_DispParms.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 31 15:01:24 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Mon Jul 31 16:44:06 2006 +0100

oleaut32: Improve dump_DispParms.

---

 dlls/oleaut32/typelib.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 0e58ae8..e648735 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -1242,15 +1242,19 @@ void dump_Variant(const VARIANT * pvar)
 
 static void dump_DispParms(const DISPPARAMS * pdp)
 {
-    int index = 0;
+    int index;
 
     TRACE("args=%u named args=%u\n", pdp->cArgs, pdp->cNamedArgs);
 
-    while (index < pdp->cArgs)
-    {
+    if (pdp->cNamedArgs)
+        TRACE("named args:\n");
+    for (index = 0; index < pdp->cNamedArgs; index++)
+        TRACE( "\t0x%lx\n", pdp->rgdispidNamedArgs[index] );
+
+    if (pdp->cArgs)
+        TRACE("args:\n");
+    for (index = 0; index < pdp->cArgs; index++)
         dump_Variant( &pdp->rgvarg[index] );
-        ++index;
-    }
 }
 
 static void dump_TypeInfo(const ITypeInfoImpl * pty)




More information about the wine-cvs mailing list