Paul Vriens : ole32/tests: Fix a crash on NT4 and below.

Alexandre Julliard julliard at winehq.org
Wed Jun 3 09:31:13 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Jun  2 22:47:46 2009 +0200

ole32/tests: Fix a crash on NT4 and below.

---

 dlls/ole32/tests/storage32.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index eb923a5..e561861 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -1367,6 +1367,12 @@ static void test_simple(void)
     IStorage_Release(stg);
 
     r = StgOpenStorage( filename, NULL, STGM_SIMPLE | STGM_SHARE_EXCLUSIVE | STGM_READWRITE, NULL, 0, &stg);
+    if (r == STG_E_INVALIDFLAG)
+    {
+        win_skip("Flag combination is not supported on NT4 and below\n");
+        DeleteFileA(filenameA);
+        return;
+    }
     ok(r == S_OK, "got %08x\n", r);
 
     r = IStorage_OpenStream(stg, stmname, NULL, STGM_SHARE_EXCLUSIVE | STGM_READWRITE, 0, &stm);




More information about the wine-cvs mailing list