Use Wine solution for MRU problem, which is slightly different from the
solution which was implemented in ReactOS
Modified: trunk/reactos/lib/comctl32/comctl32undoc.c
_____
Modified: trunk/reactos/lib/comctl32/comctl32undoc.c
--- trunk/reactos/lib/comctl32/comctl32undoc.c 2005-10-08 13:20:03 UTC
(rev 18329)
+++ trunk/reactos/lib/comctl32/comctl32undoc.c 2005-10-08 13:24:27 UTC
(rev 18330)
@@ -685,8 +685,8 @@
datasize = (mp->extview.nMaxItems + 1) * sizeof(WCHAR);
if((err=RegQueryValueExW( newkey, strMRUList, 0, &type,
(LPBYTE)mp->realMRU, &datasize))) {
- /* not present - set size to 2 (will become 0 later) */
- datasize = 2;
+ /* not present - set size to 1 (will become 0 later) */
+ datasize = 1;
*mp->realMRU = 0;
}
else
@@ -694,7 +694,7 @@
TRACE("MRU list = %s, datasize = %ld\n",
debugstr_w(mp->realMRU), datasize);
- mp->cursize = datasize / sizeof(WCHAR) - 1;
+ mp->cursize = datasize - 1;
/* datasize now has number of items in the MRUList */
/* get actual values for each entry */
Show replies by date