Christian Costa <titan.co...@gmail.com> writes: > - if (strlen(target) != 6 || target[1] != 's' || target[2] != '_' || > target[4] != '_') > + for (i = 0; i < nb_targets; i++) > { > - FIXME("Unknown compilation target %s.\n", debugstr_a(target)); > - return D3DERR_INVALIDCALL; > + if (!strcmp(target, targets_info[i].name) || > + (targets_info[i].altname && !strcmp(target, > targets_info[i].altname)))
A binary search would be much better. -- Alexandre Julliard julli...@winehq.org