Module: wine Branch: master Commit: b4ec41220306a3504a7bbcf815bf802c7f4a37b2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4ec41220306a3504a7bbcf815...
Author: Marcus Meissner marcus@jet.franken.de Date: Tue Apr 7 07:09:28 2015 +0200
comctl32: Avoid integer overflow (Coverity).
---
dlls/comctl32/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/dsa.c b/dlls/comctl32/dsa.c index 32f9926..a73a54a 100644 --- a/dlls/comctl32/dsa.c +++ b/dlls/comctl32/dsa.c @@ -488,5 +488,5 @@ ULONGLONG WINAPI DSA_GetSize(HDSA hdsa)
if (!hdsa) return 0;
- return sizeof(*hdsa) + hdsa->nMaxCount*hdsa->nItemSize; + return sizeof(*hdsa) + (ULONGLONG)hdsa->nMaxCount*hdsa->nItemSize; }