Mike McCormack : msi: Always initialize MsiViewFetch' s returned record to zero.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 12 07:09:42 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 15d302c313b175d068bbd8c7c04c60c2938ef772
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=15d302c313b175d068bbd8c7c04c60c2938ef772

Author: Mike McCormack <mike at codeweavers.com>
Date:   Sun Jun 11 09:51:29 2006 +0900

msi: Always initialize MsiViewFetch's returned record to zero.

---

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

diff --git a/dlls/msi/msiquery.c b/dlls/msi/msiquery.c
index da33acc..06c6bf9 100644
--- a/dlls/msi/msiquery.c
+++ b/dlls/msi/msiquery.c
@@ -354,6 +354,10 @@ UINT WINAPI MsiViewFetch(MSIHANDLE hView
 
     TRACE("%ld %p\n", hView, record);
 
+    if( !record )
+        return ERROR_INVALID_PARAMETER;
+    *record = 0;
+
     query = msihandle2msiinfo( hView, MSIHANDLETYPE_VIEW );
     if( !query )
         return ERROR_INVALID_HANDLE;




More information about the wine-cvs mailing list