widl: Don't search for a import file name with a path in the include directories for compatibility with MIDL.

This commit is contained in:
Rob Shearman 2008-01-30 22:29:23 +00:00 committed by Alexandre Julliard
parent 2118aeca16
commit 454e489c2f
1 changed files with 5 additions and 1 deletions

View File

@ -414,7 +414,11 @@ int do_import(char *fname)
import->next = first_import;
first_import = import;
if (!(path = wpp_find_include( fname, input_name )))
/* don't search for a file name with a path in the include directories,
* for compatibility with MIDL */
if (strchr( fname, '/' ) || strchr( fname, '\\' ))
path = strdup( fname );
else if (!(path = wpp_find_include( fname, input_name )))
error_loc("Unable to open include file %s\n", fname);
import_stack[ptr].temp_name = temp_name;