From: Stefan D��singer stefan@codeweavers.com
Fixes building tests in Visual Studio with msvc's own crt headers.
---
This follows patches in other places that replaced it first with _strnicmp(a, b, -1), and later with _stricmp(a, b), because _strnicmp with size=-1 raises a runtime error. --- include/wine/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/wine/test.h b/include/wine/test.h index 3782c6eeeb6..81527eef5f2 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -679,7 +679,7 @@ int main( int argc, char **argv )
if (GetEnvironmentVariableA( "WINETEST_COLOR", p, sizeof(p) )) { - BOOL automode = !strcasecmp(p, "auto"); + BOOL automode = !_stricmp(p, "auto"); winetest_color = automode ? isatty( fileno( stdout ) ) : atoi(p); /* enable ANSI support for Windows console */ if (winetest_color)