mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user