Commit 9a02d894 authored by rswindell's avatar rswindell
Browse files

Use case-sensitive sorting in Windows version of glob() - unless GLOB_NOSORT

is used of course.
This should provide more consistent results with the *nix builds of stuff
(e.g. JS Directory()).
parent 15accf58
......@@ -152,7 +152,7 @@ void DLLCALL _splitpath(const char *path, char *drive, char *dir, char *fname, c
static int __cdecl glob_compare( const void *arg1, const void *arg2 )
{
/* Compare all of both strings: */
return stricmp( * ( char** ) arg1, * ( char** ) arg2 );
return strcmp( * ( char** ) arg1, * ( char** ) arg2 );
}
#if defined(__BORLANDC__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment