shell32: MSVC compatibility fix in dump_pidl_hex()

Martin Fuchs martin-fuchs at gmx.net
Sat Jan 7 12:37:57 CST 2006


Changelog:
MSVC doesn't like variables in array size declarations, so use macros instead of integer constants


Index: dlls/shell32/debughlp.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/debughlp.c,v
retrieving revision 1.25
diff -u -p -d -r1.25 debughlp.c
--- dlls/shell32/debughlp.c	8 Sep 2005 18:54:03 -0000	1.25
+++ dlls/shell32/debughlp.c	7 Jan 2006 18:36:39 -0000
@@ -224,7 +224,8 @@ void pdump (LPCITEMIDLIST pidl)
 static void dump_pidl_hex( LPCITEMIDLIST pidl )
 {
     const unsigned char *p = (const unsigned char *)pidl;
-    const int max_bytes = 0x80, max_line = 0x10;
+#define max_bytes 0x80
+#define max_line 0x10
     char szHex[max_line*3+1], szAscii[max_line+1];
     int i, n;
 




More information about the wine-patches mailing list