Jacek Caban (@jacek) commented about dlls/urlmon/uri.c:
{/* Anything less than 3 ASCII characters is considered part * of the TLD name. * Ex: ak.uk -> Has no domain name. */
return;
BOOL all_ascii = TRUE;for(p = host; p < last_tld; p++) {if(!is_ascii(*p)) {all_ascii = FALSE;break;}}if(all_ascii)
You may check for `p == last_tld` and drop `all_ascii` variable.