[advpack] Make tests run on Win98 again
Paul Vriens
Paul.Vriens at xs4all.nl
Fri Oct 6 04:41:28 CDT 2006
Hi,
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).
There are still some other failures with this test.
Changelog
Make tests run on Win98 again.
Cheers,
Paul.
---
dlls/advpack/tests/files.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c
index 6699617..8e0ea73 100644
--- a/dlls/advpack/tests/files.c
+++ b/dlls/advpack/tests/files.c
@@ -239,7 +239,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