Hans Leidekker : msi: Set the OutOfNoRbDiskSpace property.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Sep 2 14:30:38 CDT 2014


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Sep  1 16:03:56 2014 +0200

msi: Set the OutOfNoRbDiskSpace property.

---

 dlls/msi/action.c        | 3 +++
 dlls/msi/tests/package.c | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 41f367b..7ebdcc8 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2355,6 +2355,8 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
     static const WCHAR szPrimaryVolumeSpaceAvailable[] =
         {'P','r','i','m','a','r','y','V','o','l','u','m','e','S','p','a','c','e',
          'A','v','a','i','l','a','b','l','e',0};
+    static const WCHAR szOutOfNoRbDiskSpace[] =
+        {'O','u','t','O','f','N','o','R','b','D','i','s','k','S','p','a','c','e',0};
     MSICOMPONENT *comp;
     MSIQUERY *view;
     WCHAR *level, *primary_key, *primary_folder;
@@ -2431,6 +2433,7 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
 
     /* FIXME: check volume disk space */
     msi_set_property( package->db, szOutOfDiskSpace, szZero, -1 );
+    msi_set_property( package->db, szOutOfNoRbDiskSpace, szZero, -1 );
 
     return MSI_SetFeatureStates(package);
 }
diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index 9705827..1a5935d 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -1145,6 +1145,12 @@ static void test_settargetpath(void)
     r = MsiDoActionA( hpkg, "CostFinalize");
     ok( r == ERROR_SUCCESS, "cost finalize failed\n");
 
+    buffer[0] = 0;
+    sz = sizeof(buffer);
+    r = MsiGetPropertyA( hpkg, "OutOfNoRbDiskSpace", buffer, &sz );
+    ok( r == ERROR_SUCCESS, "MsiGetProperty returned %u\n", r );
+    trace( "OutOfNoRbDiskSpace = \"%s\"\n", buffer );
+
     r = MsiSetTargetPathA( 0, NULL, NULL );
     ok( r == ERROR_INVALID_PARAMETER, "wrong return val\n");
 




More information about the wine-cvs mailing list