mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
widl: Support Windows paths in dup_basename and make_token.
This commit is contained in:
parent
d03f5f22e9
commit
0fae921727
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user