Commit 19d29f3c authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Don't overwrite 'cb' field with uninitialized data in DdeQueryConvInfo() (Coverity).

parent 9db3444e
......@@ -2468,7 +2468,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment