msi: Remove unneeded address-of operators from array names

Andrew Talbot andrew.talbot at talbotville.com
Fri Jul 11 04:41:39 CDT 2008


Changelog:
    msi: Remove unneeded address-of operators from array names.

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index f903d05..0bd23fa 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -2846,7 +2846,7 @@ UINT WINAPI MsiGetFileHashW( LPCWSTR szFilePath, DWORD dwOptions,
             MD5Final( &ctx );
             UnmapViewOfFile( p );
 
-            memcpy( pHash->dwData, &ctx.digest, sizeof pHash->dwData );
+            memcpy( pHash->dwData, ctx.digest, sizeof pHash->dwData );
             r = ERROR_SUCCESS;
         }
         CloseHandle( mapping );
diff --git a/dlls/msi/suminfo.c b/dlls/msi/suminfo.c
index 35dc652..5d73c57 100644
--- a/dlls/msi/suminfo.c
+++ b/dlls/msi/suminfo.c
@@ -443,7 +443,7 @@ MSISUMMARYINFO *MSI_GetSummaryInformationW( IStorage *stg, UINT uiUpdateCount )
     if( !si )
         return si;
 
-    memset( &si->property, 0, sizeof si->property );
+    memset( si->property, 0, sizeof si->property );
     si->update_count = uiUpdateCount;
     IStorage_AddRef( stg );
     si->storage = stg;



More information about the wine-patches mailing list