Commit 454e489c authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

widl: Don't search for a import file name with a path in the include directories for compatibility with MIDL.
parent 2118aeca
......@@ -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;
......
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