mshtml: Don't try to null terminate post data if it's not available.
This commit is contained in:
parent
6485a67a90
commit
ec97e3fd57
|
@ -902,7 +902,8 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade
|
|||
post_data = new_data;
|
||||
}
|
||||
|
||||
post_data[data_len] = 0;
|
||||
if(post_data)
|
||||
post_data[data_len] = 0;
|
||||
request_data->post_data = post_data;
|
||||
request_data->post_data_len = data_len;
|
||||
TRACE("post_data = %s\n", debugstr_an(request_data->post_data, request_data->post_data_len));
|
||||
|
|
Loading…
Reference in New Issue