diff --git a/alias_table.c b/alias_table.c index 9fda1cd..6bf2bd6 100644 --- a/alias_table.c +++ b/alias_table.c @@ -106,6 +106,8 @@ BOOL class_registerAlias_np(Class class, const char *alias) return 0; } + class = (Class)objc_getClass(class->name); + /* * If there already exists a matching alias, determine whether we the existing * alias is the correct one. Please note that objc_getClass() goes through the