Fix incorrect strcmp usage.

main
David Chisnall 7 years ago
parent d015f0160c
commit 2edfe64739

@ -246,7 +246,7 @@ OBJC_PUBLIC void __objc_load(struct objc_init *init)
continue;
}
// As a special case, allow using legacy ABI code with a new runtime.
if (isFirstLoad && (strcmp((*cls)->name, "Protocol")))
if (isFirstLoad && (strcmp((*cls)->name, "Protocol") == 0))
{
CurrentABI = UnknownABI;
}

Loading…
Cancel
Save