Commit e3b3c5ad authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

Buffer size needs to be specified in bytes on input.

parent 4db3769e
...@@ -682,7 +682,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp) ...@@ -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) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment