Commit b1c4eecd authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet: Support setting the user agent string on handles returned by InternetOpen.

parent 10d800b6
...@@ -906,6 +906,10 @@ static DWORD APPINFO_SetOption(object_header_t *hdr, DWORD option, void *buf, DW ...@@ -906,6 +906,10 @@ static DWORD APPINFO_SetOption(object_header_t *hdr, DWORD option, void *buf, DW
ai->connect_timeout = *(ULONG*)buf; ai->connect_timeout = *(ULONG*)buf;
return ERROR_SUCCESS; return ERROR_SUCCESS;
case INTERNET_OPTION_USER_AGENT:
heap_free(ai->agent);
if (!(ai->agent = heap_strdupW(buf))) return ERROR_OUTOFMEMORY;
return ERROR_SUCCESS;
} }
return INET_SetOption(hdr, option, buf, size); return INET_SetOption(hdr, option, buf, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment