Author: cwittich
Date: Sun Sep 4 08:03:23 2016
New Revision: 72563
URL:
http://svn.reactos.org/svn/reactos?rev=72563&view=rev
Log:
[USER32] on't overwrite 'cb' field with uninitialized data in
DdeQueryConvInfo() patch by Nikolay Sivov
Modified:
trunk/reactos/win32ss/user/user32/misc/ddemisc.c
Modified: trunk/reactos/win32ss/user/user32/misc/ddemisc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/d…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/ddemisc.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/ddemisc.c [iso-8859-1] Sun Sep 4 08:03:23
2016
@@ -2456,7 +2456,10 @@
}
if (ret != 0)
+ {
+ ci.cb = lpConvInfo->cb;
memcpy(lpConvInfo, &ci, min((size_t)lpConvInfo->cb, sizeof(ci)));
+ }
return ret;
}