dlls/comctl32/comctl32undoc.c
Ge van Geldorp
gvg at reactos.com
Fri Sep 16 15:03:58 CDT 2005
Changelog:
Ge van Geldorp <gvg at reactos.com>
- Buffer size needs to be specified in bytes on input.
Index: dlls/comctl32/comctl32undoc.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/comctl32undoc.c,v
retrieving revision 1.104
diff -u -r1.104 comctl32undoc.c
--- dlls/comctl32/comctl32undoc.c 12 Sep 2005 22:07:54 -0000 1.104
+++ dlls/comctl32/comctl32undoc.c 16 Sep 2005 19:55:56 -0000
@@ -682,7 +682,7 @@
/* get values from key 'MRUList' */
if (newkey) {
- datasize = mp->extview.nMaxItems + 1;
+ datasize = (mp->extview.nMaxItems + 1) * sizeof(WCHAR);
if((err=RegQueryValueExW( newkey, strMRUList, 0, &type,
(LPBYTE)mp->realMRU, &datasize))) {
/* not present - set size to 1 (will become 0 later) */
More information about the wine-patches
mailing list