Nikolay Sivov : ddeml: Don't trash 'cb' field of structure returned by DdeQueryConvInfo16() (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 23 09:59:46 CST 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Nov 22 22:55:52 2015 +0300

ddeml: Don't trash 'cb' field of structure returned by DdeQueryConvInfo16() (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ddeml.dll16/ddeml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ddeml.dll16/ddeml.c b/dlls/ddeml.dll16/ddeml.c
index 94c947b..5ecb35e 100644
--- a/dlls/ddeml.dll16/ddeml.c
+++ b/dlls/ddeml.dll16/ddeml.c
@@ -496,6 +496,7 @@ UINT16 WINAPI DdeQueryConvInfo16(HCONV hConv, DWORD idTransaction,
     ret = DdeQueryConvInfo(hConv, idTransaction, &ci32);
     if (ret == 0) return 0;
 
+    ci16.cb = lpConvInfo->cb;
     ci16.hUser = ci32.hUser;
     ci16.hConvPartner = ci32.hConvPartner;
     ci16.hszSvcPartner = ci32.hszSvcPartner;




More information about the wine-cvs mailing list