Nikolay Sivov : ole32/propstorage: Handle VT_I8/VT_UI8 when serializing properties.

Alexandre Julliard julliard at winehq.org
Fri Nov 13 15:57:52 CST 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Nov 13 00:07:05 2020 +0300

ole32/propstorage: Handle VT_I8/VT_UI8 when serializing 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 adf4c2f3370..27794c739ee 100644
--- a/dlls/ole32/stg_prop.c
+++ b/dlls/ole32/stg_prop.c
@@ -2103,6 +2103,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
     HRESULT hr;
     LARGE_INTEGER seek;
     PROPERTYIDOFFSET propIdOffset;
+    ULARGE_INTEGER ularge;
     ULONG count;
 
     assert(var);
@@ -2161,6 +2162,13 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
         bytesWritten = count;
         break;
     }
+    case VT_I8:
+    case VT_UI8:
+    {
+        StorageUtl_WriteULargeInteger(&ularge, 0, &var->u.uhVal);
+        hr = IStream_Write(This->stm, &ularge, sizeof(ularge), &bytesWritten);
+        break;
+    }
     case VT_LPSTR:
     {
         if (This->codePage == CP_UNICODE)




More information about the wine-cvs mailing list