diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index d7d340fe614..98f562d7098 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -1093,7 +1093,7 @@ static HRESULT PropertyStorage_ReadProperty(PROPVARIANT *prop, const BYTE *data, DWORD count; StorageUtl_ReadDWord(data, 0, &count); - if (codepage == CP_UNICODE && count / 2) + if (codepage == CP_UNICODE && count % 2) { WARN("Unicode string has odd number of bytes\n"); hr = STG_E_INVALIDHEADER;