[5/5] ole32: Fix typo.

Vincent Povirk madewokherd at gmail.com
Mon Aug 27 17:39:58 CDT 2012


-------------- next part --------------
From e9a8cf9c328314f78785937dd01265b7876c6350 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Mon, 27 Aug 2012 17:28:56 -0500
Subject: [PATCH 5/5] ole32: Fix typo.

---
 dlls/ole32/stg_prop.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
index 71fd4a1..451f70b 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;
-- 
1.7.9.5


More information about the wine-patches mailing list