mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Use Wine solution for MRU problem, which is slightly different from the
solution which was implemented in ReactOS svn path=/trunk/; revision=18330
This commit is contained in:
parent
b09d85cc20
commit
4f410ff156
1 changed files with 3 additions and 3 deletions
|
@ -685,8 +685,8 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
|
|||
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 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
|
|||
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue