Francois Gouget : ole32/tests: Fix spelling of a variable name.

Alexandre Julliard julliard at winehq.org
Fri Sep 14 14:20:59 CDT 2018


Module: wine
Branch: master
Commit: 8330192951adc06f024b136ef016414c6cf345ed
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8330192951adc06f024b136ef016414c6cf345ed

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Sep 14 16:47:39 2018 +0200

ole32/tests: Fix spelling of a variable name.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/tests/ole2.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/ole32/tests/ole2.c b/dlls/ole32/tests/ole2.c
index 9b82e49..18cfb19 100644
--- a/dlls/ole32/tests/ole2.c
+++ b/dlls/ole32/tests/ole2.c
@@ -4620,7 +4620,7 @@ static void test_OleCreateStaticFromData(void)
     IOleObject *ole_obj = NULL;
     IStorage *storage;
     ILockBytes *ilb;
-    IPersist *presist;
+    IPersist *persist;
     CLSID clsid;
     STATSTG statstg;
     int enumerated_streams, matched_streams;
@@ -4699,9 +4699,9 @@ static void test_OleCreateStaticFromData(void)
     hr = OleCreateStaticFromData(&DataObject, &IID_IOleObject, OLERENDER_FORMAT,
                                  dib_fmt, NULL, storage, (void **)&ole_obj);
     ok(hr == S_OK, "OleCreateStaticFromData failed: 0x%08x.\n", hr);
-    hr = IOleObject_QueryInterface(ole_obj, &IID_IPersist, (void **)&presist);
+    hr = IOleObject_QueryInterface(ole_obj, &IID_IPersist, (void **)&persist);
     ok(hr == S_OK, "IOleObject_QueryInterface failed: 0x%08x.\n", hr);
-    hr = IPersist_GetClassID(presist, &clsid);
+    hr = IPersist_GetClassID(persist, &clsid);
     ok(hr == S_OK, "IPersist_GetClassID failed: 0x%08x.\n", hr);
     ok(IsEqualCLSID(&clsid, &CLSID_Picture_Dib), "Got wrong clsid: %s, expected: %s.\n",
        wine_dbgstr_guid(&clsid), wine_dbgstr_guid(&CLSID_Picture_Dib));
@@ -4717,7 +4717,7 @@ static void test_OleCreateStaticFromData(void)
     ok(enumerated_streams == stg_def_dib.stream_count, "created %d != def streams %d\n",
        enumerated_streams, stg_def_dib.stream_count);
     ReleaseStgMedium(&stgmed);
-    IPersist_Release(presist);
+    IPersist_Release(persist);
     IStorage_Release(storage);
     IOleObject_Release(ole_obj);
 
@@ -4733,9 +4733,9 @@ static void test_OleCreateStaticFromData(void)
     hr = OleCreateStaticFromData(&DataObject, &IID_IOleObject, OLERENDER_FORMAT,
                                  emf_fmt, NULL, storage, (void **)&ole_obj);
     ok(hr == S_OK, "OleCreateStaticFromData failed: 0x%08x.\n", hr);
-    hr = IOleObject_QueryInterface(ole_obj, &IID_IPersist, (void **)&presist);
+    hr = IOleObject_QueryInterface(ole_obj, &IID_IPersist, (void **)&persist);
     ok(hr == S_OK, "IOleObject_QueryInterface failed: 0x%08x.\n", hr);
-    hr = IPersist_GetClassID(presist, &clsid);
+    hr = IPersist_GetClassID(persist, &clsid);
     ok(hr == S_OK, "IPersist_GetClassID failed: 0x%08x.\n", hr);
     ok(IsEqualCLSID(&clsid, &CLSID_Picture_EnhMetafile), "Got wrong clsid: %s, expected: %s.\n",
        wine_dbgstr_guid(&clsid), wine_dbgstr_guid(&CLSID_Picture_EnhMetafile));
@@ -4751,7 +4751,7 @@ static void test_OleCreateStaticFromData(void)
     ok(enumerated_streams == stg_def_emf.stream_count, "created %d != def streams %d\n",
        enumerated_streams, stg_def_emf.stream_count);
     ReleaseStgMedium(&stgmed);
-    IPersist_Release(presist);
+    IPersist_Release(persist);
     IStorage_Release(storage);
     IOleObject_Release(ole_obj);
 




More information about the wine-cvs mailing list