mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
widl: Don't add importlib if it is already on the list. Remove warning.
This commit is contained in:
parent
a7fa3a985b
commit
dee8790c69
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user