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

This commit is contained in:
Paul Vriens 2009-06-02 22:47:46 +02:00 committed by Alexandre Julliard
parent df24ec66dd
commit 27485d9b53
1 changed files with 6 additions and 0 deletions

View File

@ -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);