wimlib_resolve_image(WIMStruct *w, const tchar *image_name_or_num)
{
tchar *p;
- int image;
+ long image;
int i;
if (!image_name_or_num || !*image_name_or_num)
return image;
} else {
for (i = 1; i <= w->hdr.image_count; i++) {
- if (tstrcmp(image_name_or_num,
- wimlib_get_image_name(w, i)) == 0)
+ if (!tstrcmp(image_name_or_num,
+ wimlib_get_image_name(w, i)))
return i;
}
return WIMLIB_NO_IMAGE;
static bool
test_locale_ctype_utf8()
{
+#ifdef __WIN32__
+ return false;
+#else
char *ctype = nl_langinfo(CODESET);
return (!strstr(ctype, "UTF-8") ||
!strstr(ctype, "UTF8") ||
!strstr(ctype, "utf8") ||
!strstr(ctype, "utf-8"));
+#endif
}
/* Get global memory allocations out of the way,