Nikolay Sivov : ole32: Add support for reading VT_CLSID properties.

Alexandre Julliard julliard at winehq.org
Mon Mar 23 15:47:09 CDT 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Mar 23 09:24:11 2020 +0300

ole32: Add support for reading VT_CLSID properties.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/stg_prop.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
index c5d2a42e1c..adf4c2f337 100644
--- a/dlls/ole32/stg_prop.c
+++ b/dlls/ole32/stg_prop.c
@@ -1454,6 +1454,14 @@ static HRESULT propertystorage_read_scalar(PROPVARIANT *prop, const struct read_
             else
                 hr = STG_E_INVALIDPARAMETER;
         }
+        break;
+    case VT_CLSID:
+        if (!(prop->u.puuid = allocate(allocate_data, sizeof (*prop->u.puuid))))
+            return STG_E_INSUFFICIENTMEMORY;
+
+        if (SUCCEEDED(hr = buffer_test_offset(buffer, offset, sizeof(*prop->u.puuid))))
+            StorageUtl_ReadGUID(buffer->data, offset, prop->u.puuid);
+
         break;
     default:
         FIXME("unsupported type %d\n", prop->vt);




More information about the wine-cvs mailing list