msi: Init size before passing to RegEnumValue.

This commit is contained in:
Robert Shearman 2006-02-22 16:30:57 +00:00 committed by Alexandre Julliard
parent e664435f50
commit ecc5c18f4e
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ static UINT find_given_source(HKEY key, LPCWSTR szSource, media_info *ss)
{
val = NULL;
val_size = 0;
size = sizeof(szIndex)/sizeof(szIndex[0]);
rc = RegEnumValueW(key, index, szIndex, &size, NULL, NULL, NULL, &val_size);
if (rc != ERROR_NO_MORE_ITEMS)
{