[PATCH] hhctrl.ocx: Handle just number of bytes given in html_fragment_len.

Bernhard Übelacker bernhardu at mailbox.org
Tue Jul 6 07:04:47 CDT 2021


Am 05.07.21 um 17:50 schrieb Jacek Caban:
> Hi Bernhard,
> 
> On 7/4/21 2:22 PM, Bernhard Übelacker wrote:
>> +static const char* strnchr(const char* ptr, const char value, size_t 
>> num)
>> +{
>> +    for (const char* p = ptr; p < ptr + num; p++)
>> +        if (*p == value)
>> +            return p;
>> +    return NULL;
>> +}
> 
> 
> Could you just use memchr, which is exported by ucrtbase?
> 
> 
> Thanks,
> 
> Jacek


Thanks for the review, I will check and send an updated version.



More information about the wine-devel mailing list