inetcomm: Allocate PROPVARIANT value with CoTaskMemAlloc.

This commit is contained in:
Rémi Bernon 2022-12-01 21:08:09 +01:00 committed by Alexandre Julliard
parent 9f29812504
commit 87cf8129c6

View file

@ -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';