Robert Shearman : msi: Init size before passing to RegEnumValue.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 22 15:30:23 CST 2006
Module: wine
Branch: refs/heads/master
Commit: ecc5c18f4eb10586a0fcb137d73322fd24c7156a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ecc5c18f4eb10586a0fcb137d73322fd24c7156a
Author: Robert Shearman <rob at codeweavers.com>
Date: Wed Feb 22 16:30:57 2006 +0000
msi: Init size before passing to RegEnumValue.
---
dlls/msi/source.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/source.c b/dlls/msi/source.c
index e0ed472..779bbc4 100644
--- a/dlls/msi/source.c
+++ b/dlls/msi/source.c
@@ -127,6 +127,7 @@ static UINT find_given_source(HKEY key,
{
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)
{
More information about the wine-cvs
mailing list