winedump: Print also flags and length of NE resources

Dmitry Timoshkov dmitry at baikal.ru
Thu May 19 23:43:55 CDT 2005


Hello,

winedump helped me a lot with debugging font generation problems.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Print also flags and length of NE resources.

--- cvs/hq/wine/tools/winedump/ne.c	2004-12-08 13:15:23.000000000 +0800
+++ wine/tools/winedump/ne.c	2005-05-20 11:11:53.000000000 +0900
@@ -127,9 +127,10 @@ static void dump_ne_resources( const voi
             if (name->id & 0x8000) printf( "  %d", (name->id & ~0x8000) );
             else printf( "  %.*s", *((const unsigned char *)res_ptr + name->id),
                          (const char *)res_ptr + name->id + 1 );
-            if (info->type_id & 0x8000) printf( " %s\n", get_resource_type(info->type_id) );
-            else printf( " %.*s\n", *((const unsigned char *)res_ptr + info->type_id),
+            if (info->type_id & 0x8000) printf( " %s", get_resource_type(info->type_id) );
+            else printf( " %.*s", *((const unsigned char *)res_ptr + info->type_id),
                          (const char *)res_ptr + info->type_id + 1 );
+            printf(" flags %04x length %04x\n", name->flags, name->length << size_shift);
             dump_data( (const unsigned char *)base + (name->offset << size_shift),
                        name->length << size_shift, "    " );
         }






More information about the wine-patches mailing list