programs/winedbg/info.c -- warning fixes

Gerald Pfeifer gerald at pfeifer.com
Wed Nov 28 17:11:13 CST 2007


Last one for this serious, and I believe I have now mostly cleared 
my local tree. ;-)

Gerald

ChangeLog:
Fix some variables types (and reduce scope in one case).

Index: programs/winedbg/info.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/info.c,v
retrieving revision 1.29
diff -u -3 -p -r1.29 info.c
--- programs/winedbg/info.c	3 Aug 2007 13:06:30 -0000	1.29
+++ programs/winedbg/info.c	28 Nov 2007 23:07:39 -0000
@@ -201,7 +201,7 @@ static BOOL CALLBACK info_mod_cb(PCSTR m
 void info_win32_module(DWORD64 base)
 {
     struct info_module  im;
-    int                 i, j, num_printed = 0;
+    UINT                i, j, num_printed = 0;
     DWORD               opt;
 
     if (!dbg_curr_process)
@@ -388,7 +388,6 @@ void info_win32_window(HWND hWnd, BOOL d
     char	wndName[128];
     RECT	clientRect;
     RECT	windowRect;
-    int         i;
     WORD	w;
 
     if (!IsWindow(hWnd)) hWnd = GetDesktopWindow();
@@ -434,6 +433,8 @@ void info_win32_window(HWND hWnd, BOOL d
 
     if (GetClassLong(hWnd, GCL_CBWNDEXTRA))
     {
+        UINT i;
+
         dbg_printf("Extra bytes:");
         for (i = 0; i < GetClassLong(hWnd, GCL_CBWNDEXTRA) / 2; i++)
         {



More information about the wine-patches mailing list