Commit dee8790c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

widl: Don't add importlib if it is already on the list. Remove warning.

parent a7fa3a98
......@@ -402,6 +402,13 @@ void add_importlib(const char *name)
if(!typelib) return;
for(importlib = typelib->importlibs; importlib; importlib = NEXT_LINK(importlib)) {
if(!strcmp(name, importlib->name))
return;
}
chat("add_importlib: %s\n", name);
importlib = xmalloc(sizeof(*importlib));
importlib->name = xstrdup(name);
......@@ -409,6 +416,4 @@ void add_importlib(const char *name)
LINK(importlib, typelib->importlibs);
typelib->importlibs = importlib;
warning("importlib is not yet supported.\n");
}
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