From ecc5c18f4eb10586a0fcb137d73322fd24c7156a Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 22 Feb 2006 16:30:57 +0000 Subject: [PATCH] msi: Init size before passing to RegEnumValue. --- dlls/msi/source.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/msi/source.c b/dlls/msi/source.c index e0ed472d5cf..779bbc48810 100644 --- a/dlls/msi/source.c +++ b/dlls/msi/source.c @@ -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) {