James Hawkins : msi: Initialize the count variable to zero.

Alexandre Julliard julliard at winehq.org
Thu Oct 9 07:43:08 CDT 2008


Module: wine
Branch: master
Commit: 68268dc3df2c6a05528ec9fe68959730f7417718
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=68268dc3df2c6a05528ec9fe68959730f7417718

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Thu Oct  9 04:45:25 2008 -0500

msi: Initialize the count variable to zero.

---

 dlls/msi/dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 799aa48..2dcb868 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -2247,6 +2247,7 @@ static UINT msi_listbox_add_items( struct msi_listbox_info *info, LPCWSTR proper
         return r;
 
     /* just get the number of records */
+    count = 0;
     r = MSI_IterateRecords( view, &count, NULL, NULL );
 
     info->num_items = count;




More information about the wine-cvs mailing list