mshtml: Properly handle upload streams containing headers

Alexandre Julliard julliard at winehq.org
Tue Apr 5 06:41:21 CDT 2011


Jacek Caban <jacek at codeweavers.com> writes:

> +    if(nschannel->post_data_contains_headers) {
> +        if(data[0] == '\r' && data[1] == '\n') {
> +            post_data = data+2;
> +            data_len -= 2;
> +        }else {
> +            WCHAR *headers;
> +            DWORD size;
> +
> +            post_data = memmem(data, data_len, "\r\n\r\n", 4);

memmem is not portable.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list