-- v2: ole32: Add support for writing VT_BOOL properties.
From: chy chenhaoyang@kylinos.cn
--- dlls/ole32/stg_prop.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index 547d1f82335..9f94efeee3f 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -2334,6 +2334,13 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This, bytesWritten = count + sizeof(DWORD); break; } + case VT_BOOL: + { + hr = IStream_Write(This->stm, &var->boolVal, sizeof(var->boolVal), + &count); + bytesWritten = count; + break; + } case VT_FILETIME: { FILETIME temp;
Could you please add a test for this?