Module: wine Branch: oldstable Commit: d822a9c15d23982d54345dbc1330d31d87496234 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d822a9c15d23982d54345dbc1...
Author: Nikolay Sivov nsivov@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit c455053486e717b6518ec292444f0284ae442a2b) Signed-off-by: Michael Stefaniuc mstefani@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 8421353155b..fb3a5525918 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -1884,6 +1884,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This, HRESULT hr; LARGE_INTEGER seek; PROPERTYIDOFFSET propIdOffset; + ULARGE_INTEGER ularge; ULONG count; DWORD dwType, bytesWritten;
@@ -1945,6 +1946,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: { DWORD len, dwTemp;