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

Huw Davies huw at codeweavers.com
Wed Nov 29 03:28:46 CST 2017


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/ole32/tests/ole2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ole32/tests/ole2.c b/dlls/ole32/tests/ole2.c
index 88ad207521..ca6756a6e5 100644
--- a/dlls/ole32/tests/ole2.c
+++ b/dlls/ole32/tests/ole2.c
@@ -4194,7 +4194,7 @@ static void test_data_cache_save_data(void)
             },
             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)
             },
             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)
         hr = StgCreateDocfileOnILockBytes(ilb, STGM_CREATE | STGM_READWRITE | STGM_SHARE_EXCLUSIVE, 0, &doc);
         ok(hr == S_OK, "unexpected %#x\n", hr);
         ILockBytes_Release(ilb);
-        hr = IStorage_SetClass(doc, pdata->clsid);
+        hr = IStorage_SetClass(doc, &CLSID_WineTestOld);
         ok(hr == S_OK, "unexpected %#x\n", hr);
 
         hr = IOleCache2_QueryInterface(cache, &IID_IPersistStorage, (void **)&persist);
-- 
2.12.0




More information about the wine-devel mailing list