From d46557a36783c26c31d91f53929ca53e76ac3345 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 13 Oct 2016 12:55:44 +0200 Subject: [PATCH] CompareString() flags simplified to work on Windows XP --- lib/libZRCola/include/zrcola/tag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libZRCola/include/zrcola/tag.h b/lib/libZRCola/include/zrcola/tag.h index eb9bf0f..fdaf590 100644 --- a/lib/libZRCola/include/zrcola/tag.h +++ b/lib/libZRCola/include/zrcola/tag.h @@ -234,7 +234,7 @@ namespace ZRCola { /// static inline int CompareName(LCID locale, const wchar_t *str_a, unsigned __int16 count_a, const wchar_t *str_b, unsigned __int16 count_b) { - switch (CompareString(locale, LINGUISTIC_IGNORECASE | LINGUISTIC_IGNOREDIACRITIC | NORM_LINGUISTIC_CASING | NORM_IGNOREWIDTH, str_a, count_a, str_b, count_b)) { + switch (CompareString(locale, SORT_STRINGSORT | NORM_IGNORECASE, str_a, count_a, str_b, count_b)) { case CSTR_LESS_THAN : return -1; case CSTR_EQUAL : return 0; case CSTR_GREATER_THAN: return 1;