From e3b3c5ad7c5cc86ef07cfa64c2f1d6ff6c3533ac Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Sat, 17 Sep 2005 14:29:01 +0000 Subject: [PATCH] Buffer size needs to be specified in bytes on input. --- dlls/comctl32/comctl32undoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index bb7d0218359..2bd0a149415 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -682,7 +682,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp) /* 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) */