Hans Leidekker : msi: Keep track of the patch filename in apply_registered_patch.

Alexandre Julliard julliard at winehq.org
Tue Jul 20 11:20:36 CDT 2010


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Jul 20 14:55:08 2010 +0200

msi: Keep track of the patch filename in apply_registered_patch.

---

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

diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index fba722f..bff1bb4 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -1210,6 +1210,13 @@ static UINT apply_registered_patch( MSIPACKAGE *package, LPCWSTR patch_code )
         return r;
     }
 
+    patch_info->localfile = strdupW( patch_file );
+    if (!patch_info->localfile)
+    {
+        msiobj_release( &patch_db->hdr );
+        return ERROR_OUTOFMEMORY;
+    }
+
     r = msi_apply_patch_db( package, patch_db, patch_info );
     msiobj_release( &patch_db->hdr );
     if (r != ERROR_SUCCESS)




More information about the wine-cvs mailing list