Commit 7e68281b authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

shell32: Don't overallocate in Dde_OnRequest (scan-build).

parent 9ffdfe41
......@@ -176,7 +176,7 @@ static inline HDDEDATA Dde_OnRequest(UINT uFmt, HCONV hconv, HSZ hszTopic,
}
len = WideCharToMultiByte(CP_ACP, 0, groups_data, -1, NULL, 0, NULL, NULL);
groups_dataA = malloc(len * sizeof(WCHAR));
groups_dataA = malloc(len);
if (groups_dataA)
{
WideCharToMultiByte(CP_ACP, 0, groups_data, -1, groups_dataA, len, NULL, NULL);
......
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