[WIN32K:NTUSER]

- Include the CLIPBOARDDATA structure itself when calculating the size passed to UserCreateObject in IntSynthesizeDib. Fixes user heap corruption when running user32_winetest:clipboard.
CORE-13408

svn path=/trunk/; revision=74990
This commit is contained in:
Thomas Faber 2017-06-11 06:05:42 +00:00
parent f45315d051
commit ea1f78da72

View file

@ -180,7 +180,7 @@ IntSynthesizeDib(
NULL,
&hMem,
TYPE_CLIPDATA,
cjDataSize);
sizeof(CLIPBOARDDATA) + cjDataSize);
if (!pClipboardData)
{
goto cleanup;