Commit 667ce5a2 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

ole32/tests: Show that the storage's CLSID is not modified when saving.

parent 251e6eda
...@@ -4194,7 +4194,7 @@ static void test_data_cache_save_data(void) ...@@ -4194,7 +4194,7 @@ static void test_data_cache_save_data(void)
}, },
1, 1, &CLSID_WineTest, 1, 1, &CLSID_WineTest,
{ {
&CLSID_WineTest, 1, { { "\2OlePres000", CF_DIB, DVASPECT_CONTENT, 0, NULL, 0 } } &CLSID_WineTestOld, 1, { { "\2OlePres000", CF_DIB, DVASPECT_CONTENT, 0, NULL, 0 } }
} }
}, },
{ {
...@@ -4203,7 +4203,7 @@ static void test_data_cache_save_data(void) ...@@ -4203,7 +4203,7 @@ static void test_data_cache_save_data(void)
}, },
1, 1, &CLSID_WineTest, 1, 1, &CLSID_WineTest,
{ {
&CLSID_WineTest, 1, { { "\2OlePres000", CF_METAFILEPICT, DVASPECT_CONTENT, 0, NULL, 0 } } &CLSID_WineTestOld, 1, { { "\2OlePres000", CF_METAFILEPICT, DVASPECT_CONTENT, 0, NULL, 0 } }
} }
}, },
{ {
...@@ -4238,7 +4238,7 @@ static void test_data_cache_save_data(void) ...@@ -4238,7 +4238,7 @@ static void test_data_cache_save_data(void)
hr = StgCreateDocfileOnILockBytes(ilb, STGM_CREATE | STGM_READWRITE | STGM_SHARE_EXCLUSIVE, 0, &doc); hr = StgCreateDocfileOnILockBytes(ilb, STGM_CREATE | STGM_READWRITE | STGM_SHARE_EXCLUSIVE, 0, &doc);
ok(hr == S_OK, "unexpected %#x\n", hr); ok(hr == S_OK, "unexpected %#x\n", hr);
ILockBytes_Release(ilb); ILockBytes_Release(ilb);
hr = IStorage_SetClass(doc, pdata->clsid); hr = IStorage_SetClass(doc, &CLSID_WineTestOld);
ok(hr == S_OK, "unexpected %#x\n", hr); ok(hr == S_OK, "unexpected %#x\n", hr);
hr = IOleCache2_QueryInterface(cache, &IID_IPersistStorage, (void **)&persist); hr = IOleCache2_QueryInterface(cache, &IID_IPersistStorage, (void **)&persist);
......
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