[PATCH 2/3] wininet: Make heap_strndupAtoW stop at the first null
Jacek Caban
jacek at codeweavers.com
Fri Jul 2 11:12:39 CDT 2021
Hi Tim,
On 7/1/21 7:40 PM, Tim Clem wrote:
> @@ -152,7 +152,10 @@ static inline WCHAR *heap_strndupAtoW(const char *str, int len_a, DWORD *len_w)
>
> if(str) {
> size_t len;
> - if(len_a < 0) len_a = strlen(str);
> + if(len_a < 0)
> + len_a = strlen(str);
> + else if(len_a > 0)
> + len_a = strnlen(str, len_a);
The problem seems specific to InternetCrackUrlA, I'm not sure if we
should change general helper.
Thanks,
Jacek
More information about the wine-devel
mailing list