[msi] Make tests run on Win98 again

Paul Vriens Paul.Vriens at xs4all.nl
Sun Oct 8 07:29:08 CDT 2006


Hi,

same change as for advpack and cabinet. Win98 doesn't support the
FILE_SHARE_DELETE flag. This change doesn't effect
the tests on other platforms (as far as I could test).

Changelog
  Make tests run on Win98 again

Cheers,

Paul.
---
 dlls/msi/tests/install.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index 4e611da..94925dc 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -250,7 +250,8 @@ static INT_PTR fci_open(char *pszFile, i
     DWORD dwCreateDisposition = OPEN_EXISTING;
     
     dwAccess = GENERIC_READ | GENERIC_WRITE;
-    dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
+    /* FILE_SHARE_DELETE is not supported by Windows Me/98/95 */
+    dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE;
 
     if (GetFileAttributesA(pszFile) != INVALID_FILE_ATTRIBUTES)
         dwCreateDisposition = OPEN_EXISTING;
-- 
1.4.2.3




More information about the wine-patches mailing list