Damjan Jovanovic damjan.jov@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).