Numeric resource type ids are either specified as the number with MAKEINTRESOURCEW(), or as a string prefixed by '#'. But mshtml's res:// protocol also allows the resource type id to be a numeric string without the '#' prefix.
Try 4 uses !*endpoint to check for success in wcstol() instead of endpoint == s+lstrlenW(s).
Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- dlls/mshtml/protocol.c | 27 +++++++++++++++++++-------- dlls/mshtml/tests/protocol.c | 7 +++++++ 2 files changed, 26 insertions(+), 8 deletions(-)