[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    oleaut32: Improve dump_DispParms.
From:       Robert Shearman <rob () codeweavers ! com>
Date:       2006-07-31 15:44:06
Message-ID: 44CE2546.8070905 () codeweavers ! com
[Download RAW message or body]

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

["23df57b4a1e0c972c6e8a349a96a69fda35efa64.diff" (text/x-patch)]

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 8b96c4a..47e833f 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)





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic