urlmon: Return the currently set user agent when 'version' is invalid.
commit6843cecb53ac134fae2ef22ed22a1d328516dccc
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Mon, 11 Apr 2022 15:58:49 +0000 (11 18:58 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 11 Apr 2022 19:14:59 +0000 (11 21:14 +0200)
tree50cededc042da38381b376758b05c6ef3879aa0a
parent0badd67e7013de47e3e01446b2be379819c99019
urlmon: Return the currently set user agent when 'version' is invalid.

ObtainUserAgentString returns the currently set (custom) user agent unless
the version requested is a valid one (7, 8, ... 11, or 7 | UAS_EXACTLEGACY),
in which case it uses that version to build the user agent.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/urlmon/session.c
dlls/urlmon/tests/misc.c