[USER32] on't overwrite 'cb' field with uninitialized data in DdeQueryConvInfo() patch by Nikolay Sivov

svn path=/trunk/; revision=72563
This commit is contained in:
Christoph von Wittich 2016-09-04 08:03:23 +00:00
parent 0bf3b4e81b
commit 068c14debb

View file

@ -2456,7 +2456,10 @@ UINT WINAPI DdeQueryConvInfo(HCONV hConv, DWORD id, PCONVINFO lpConvInfo)
}
if (ret != 0)
{
ci.cb = lpConvInfo->cb;
memcpy(lpConvInfo, &ci, min((size_t)lpConvInfo->cb, sizeof(ci)));
}
return ret;
}