Author: fireball
Date: Wed Jan 2 23:34:43 2008
New Revision: 31570
URL:
http://svn.reactos.org/svn/reactos?rev=31570&view=rev
Log:
- Merge 31498 from old widl.
Modified:
trunk/reactos/tools/widl_new/widl.c
Modified: trunk/reactos/tools/widl_new/widl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl_new/widl.c?rev=…
==============================================================================
--- trunk/reactos/tools/widl_new/widl.c (original)
+++ trunk/reactos/tools/widl_new/widl.c Wed Jan 2 23:34:43 2008
@@ -367,7 +367,12 @@
}
if(do_header) {
- header_token = make_token(header_name);
+ if (strrchr(header_name, '\\'))
+ header_token = make_token(strrchr(header_name, '\\') + 1);
+ else if (strrchr(header_name, '/'))
+ header_token = make_token(strrchr(header_name, '/') + 1);
+ else
+ header_token = make_token(header_name);
if(!(header = fopen(header_name, "w"))) {
fprintf(stderr, "Could not open %s for output\n", header_name);