mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
inetcomm: Allocate PROPVARIANT value with CoTaskMemAlloc.
This commit is contained in:
parent
9f29812504
commit
87cf8129c6
|
@ -714,7 +714,7 @@ static void read_value(header_t *header, char **cur)
|
|||
} while(*end == ' ' || *end == '\t');
|
||||
|
||||
len = end - *cur;
|
||||
value = malloc(len + 1);
|
||||
value = CoTaskMemAlloc(len + 1);
|
||||
memcpy(value, *cur, len);
|
||||
value[len] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in a new issue