Buffer size needs to be specified in bytes on input.
This commit is contained in:
parent
4db3769e70
commit
e3b3c5ad7c
|
@ -682,7 +682,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
|
||||||
|
|
||||||
/* get values from key 'MRUList' */
|
/* get values from key 'MRUList' */
|
||||||
if (newkey) {
|
if (newkey) {
|
||||||
datasize = mp->extview.nMaxItems + 1;
|
datasize = (mp->extview.nMaxItems + 1) * sizeof(WCHAR);
|
||||||
if((err=RegQueryValueExW( newkey, strMRUList, 0, &type,
|
if((err=RegQueryValueExW( newkey, strMRUList, 0, &type,
|
||||||
(LPBYTE)mp->realMRU, &datasize))) {
|
(LPBYTE)mp->realMRU, &datasize))) {
|
||||||
/* not present - set size to 1 (will become 0 later) */
|
/* not present - set size to 1 (will become 0 later) */
|
||||||
|
|
Loading…
Reference in New Issue