Commit e45202fd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Remove unsupported interface REFIID from storage stream QueryInterface.

parent 382acd52
......@@ -94,8 +94,6 @@ static HRESULT WINAPI StgStreamImpl_QueryInterface(
*ppvObject = 0;
if (IsEqualIID(&IID_IUnknown, riid) ||
IsEqualIID(&IID_IPersist, riid) ||
IsEqualIID(&IID_IPersistStream, riid) ||
IsEqualIID(&IID_ISequentialStream, riid) ||
IsEqualIID(&IID_IStream, riid))
{
......
......@@ -315,6 +315,7 @@ static void test_storage_stream(void)
LARGE_INTEGER pos;
ULARGE_INTEGER p;
unsigned char buffer[0x100];
IUnknown *unk;
DeleteFileA(filenameA);
......@@ -347,6 +348,13 @@ static void test_storage_stream(void)
/* now really create a stream and delete it */
r = IStorage_CreateStream(stg, stmname, STGM_SHARE_EXCLUSIVE | STGM_READWRITE, 0, 0, &stm );
ok(r==S_OK, "IStorage->CreateStream failed\n");
/* test for support interfaces */
r = IStream_QueryInterface(stm, &IID_IPersist, (void**)&unk);
ok(r==E_NOINTERFACE, "got 0x%08x\n", r);
r = IStream_QueryInterface(stm, &IID_IPersistStream, (void**)&unk);
ok(r==E_NOINTERFACE, "got 0x%08x\n", r);
r = IStream_Release(stm);
ok(r == 0, "wrong ref count\n");
r = IStorage_CreateStream(stg, stmname, STGM_SHARE_EXCLUSIVE | STGM_READWRITE, 0, 0, &stm );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment