mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 18:57:38 +00:00
shell32: Don't overallocate in Dde_OnRequest (scan-build).
This commit is contained in:
parent
9ffdfe4109
commit
7e68281b25
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue