MRUlist fix

Aric Stewart aric at codeweavers.com
Mon Aug 29 12:41:37 CDT 2005


Reading the MRUlist using the W functions we need to divide the size by 
sizeof(WCHAR) to get the count of characters.
-------------- next part --------------
Index: dlls/comctl32/comctl32undoc.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/comctl32undoc.c,v
retrieving revision 1.101
diff -u -r1.101 comctl32undoc.c
--- dlls/comctl32/comctl32undoc.c	28 Jul 2005 10:18:24 -0000	1.101
+++ dlls/comctl32/comctl32undoc.c	29 Aug 2005 17:41:35 -0000
@@ -689,6 +689,8 @@
 	    datasize = 1;
 	    *mp->realMRU = 0;
 	}
+    else
+        datasize /= sizeof(WCHAR);
 
 	TRACE("MRU list = %s, datasize = %ld\n", debugstr_w(mp->realMRU), datasize);
 


More information about the wine-patches mailing list