Reading the MRUlist using the W functions we need to divide the size

by sizeof(WCHAR) to get the count of characters.
This commit is contained in:
Aric Stewart 2005-09-06 11:42:13 +00:00 committed by Alexandre Julliard
parent 6e940bb21e
commit 42e592d17a
1 changed files with 2 additions and 0 deletions

View File

@ -689,6 +689,8 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
datasize = 1;
*mp->realMRU = 0;
}
else
datasize /= sizeof(WCHAR);
TRACE("MRU list = %s, datasize = %ld\n", debugstr_w(mp->realMRU), datasize);