From 27485d9b53b707bc66e2b6ebc4c3ead4ee57290b Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 2 Jun 2009 22:47:46 +0200 Subject: [PATCH] ole32/tests: Fix a crash on NT4 and below. --- dlls/ole32/tests/storage32.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index eb923a5ba50..e561861c433 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);