Michael Stefaniuc : oleaut32: Clarify cast operation (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 28 02:24:35 CDT 2014


Module: wine
Branch: master
Commit: 39eede134ea938ff40cba4dab2340bf1a7843e45
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=39eede134ea938ff40cba4dab2340bf1a7843e45

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Oct 27 20:01:37 2014 +0100

oleaut32: Clarify cast operation (PVS-Studio).

---

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

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 48b171b..00f5043 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -9144,7 +9144,7 @@ static DWORD WMSFT_append_arraydesc(ARRAYDESC *desc, WMSFT_TLBFile *file)
         file->arraydesc_seg.data = heap_alloc(file->arraydesc_seg.len);
     else
         file->arraydesc_seg.data = heap_realloc(file->arraydesc_seg.data, file->arraydesc_seg.len);
-    encoded = (DWORD*)((char *)file->arraydesc_seg.data) + offs;
+    encoded = (DWORD*)((char *)file->arraydesc_seg.data + offs);
 
     encoded[0] = WMSFT_append_typedesc(&desc->tdescElem, file, NULL, NULL);
     encoded[1] = desc->cDims | ((desc->cDims * 2 * sizeof(DWORD)) << 16);




More information about the wine-cvs mailing list