[PATCH 1/3] mshtml: for res:// URLs, numeric resource type ids don't need a leading '#'
Dmitry Timoshkov
dmitry at baikal.ru
Sat Apr 18 04:05:39 CDT 2020
Damjan Jovanovic <damjan.jov at gmail.com> wrote:
> @@ -585,7 +586,11 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
>
> *res_type++ = 0;
> if ((url_file = wcschr(res_type, '/'))) {
> + LPWSTR endpoint = NULL;
> *url_file++ = 0;
> + res_type_id = wcstol(res_type, &endpoint, 10);
> + if(endpoint != res_type+lstrlenW(res_type))
> + res_type_id = MAXDWORD;
Wouldn't it be simpler to check for *endpoint != 0? (Here and in other
places).
--
Dmitry.
More information about the wine-devel
mailing list