Get and print class name for right window in WIN_WalkWindows

Dmitry Timoshkov dmitry at sloboda.ru
Wed Mar 28 07:02:25 CST 2001


Hello.

WIN_WalkWindows is almost useless right now with this bug present.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Get and print class name for right window in WIN_WalkWindows.

--- cvs/wine/windows/win.c	Sat Mar 24 13:53:04 2001
+++ wine/windows/win.c	Wed Mar 28 20:45:43 2001
@@ -265,7 +265,7 @@
     {
         DPRINTF( "%*s%04x%*s", indent, "", ptr->hwndSelf, 13-indent,"");
 
-        GetClassNameA( hwnd, className, sizeof(className) );
+        GetClassNameA( ptr->hwndSelf, className, sizeof(className) );
         DPRINTF( "%08lx %-6.4x %-17.17s %08x %08x %.14s\n",
                  (DWORD)ptr, ptr->hmemTaskQ, className,
                  (UINT)ptr->dwStyle, (UINT)ptr->winproc,
@@ -273,9 +273,7 @@
         
         if (ptr->child) WIN_WalkWindows( ptr->child->hwndSelf, indent+1 );
         WIN_UpdateWndPtr(&ptr,ptr->next);
-        
     }
-
 }
 
 /***********************************************************************






More information about the wine-patches mailing list