Eric Pouech : winedbg: Correctly print type for functions without parameters.

Alexandre Julliard julliard at winehq.org
Mon Jun 29 09:17:45 CDT 2009


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun Jun 28 21:00:23 2009 +0200

winedbg: Correctly print type for functions without parameters.

---

 programs/winedbg/types.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index a13f77f..9c21bd4 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -699,7 +699,8 @@ int types_print_type(const struct dbg_type* type, BOOL details)
             int                         i;
 
             fcp->Start = 0;
-            while (count)
+            if (!count) dbg_printf("void");
+            else while (count)
             {
                 fcp->Count = min(count, 256);
                 if (types_get_info(type, TI_FINDCHILDREN, fcp))




More information about the wine-cvs mailing list