[PATCH] urlmon: CoInternetParseUrl(PARSE_UNESCAPE) is an alias of PARSE_ENCODE.

Jacek Caban jacek at codeweavers.com
Thu May 16 15:03:15 CDT 2019


On 5/16/19 1:12 PM, Dmitry Timoshkov wrote:
> Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
> ---
>   dlls/urlmon/internet.c   | 1 +
>   dlls/urlmon/tests/misc.c | 7 +++++++
>   2 files changed, 8 insertions(+)
>
> diff --git a/dlls/urlmon/internet.c b/dlls/urlmon/internet.c
> index 7c997a03b0..3b83d48895 100644
> --- a/dlls/urlmon/internet.c
> +++ b/dlls/urlmon/internet.c
> @@ -401,6 +401,7 @@ HRESULT WINAPI CoInternetParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD
>       case PARSE_SECURITY_URL:
>           return parse_security_url(pwzUrl, dwFlags, pszResult, cchResult, pcchResult);
>       case PARSE_ENCODE:
> +    case PARSE_UNESCAPE:
>           return parse_encode(pwzUrl, dwFlags, pszResult, cchResult, pcchResult);


Although the default action is probably indeed the same, pluggable 
protocol handle is free to treat it differently. I sent a patch to make 
current tests more strict. I checked that PARSE_UNESCAPE is propagated 
to ParseUrl by CoInternetParseUrl.


Thanks,

Jacek




More information about the wine-devel mailing list