mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +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:
parent
0bf3b4e81b
commit
068c14debb
|
@ -2456,7 +2456,10 @@ UINT WINAPI DdeQueryConvInfo(HCONV hConv, DWORD id, PCONVINFO lpConvInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
|
{
|
||||||
|
ci.cb = lpConvInfo->cb;
|
||||||
memcpy(lpConvInfo, &ci, min((size_t)lpConvInfo->cb, sizeof(ci)));
|
memcpy(lpConvInfo, &ci, min((size_t)lpConvInfo->cb, sizeof(ci)));
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue