Commit 0fae9217 authored by Colin Finck's avatar Colin Finck Committed by Alexandre Julliard

widl: Support Windows paths in dup_basename and make_token.

parent d03f5f22
......@@ -136,6 +136,9 @@ char *dup_basename(const char *name, const char *ext)
name = "widl.tab";
slash = strrchr(name, '/');
if (!slash)
slash = strrchr(name, '\\');
if (slash)
name = slash + 1;
......
......@@ -166,6 +166,9 @@ static char *make_token(const char *name)
int i;
slash = strrchr(name, '/');
if(!slash)
slash = strrchr(name, '\\');
if (slash) name = slash + 1;
token = xstrdup(name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment