From 38164a410d754b96b588f051445b062776b19a67 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 30 Nov 2014 12:31:43 +0000 Subject: [PATCH] ImStrnicmp tweak --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 2acc58e87..f45b9f2cd 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -442,7 +442,7 @@ static int ImStrnicmp(const char* str1, const char* str2, int count) { int d = 0; while (count > 0 && (d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; count--; } - return (count == 0) ? 0 : d; + return d; } static char* ImStrdup(const char *str)