There is no reason to use case-sensitive path lookups on MS-Windows. Also replace BLI_str_endswith with BLI_path_basename since ends-with checks don't ensure a preceding path separator.
There is no reason to use case-sensitive path lookups on MS-Windows. Also replace BLI_str_endswith with BLI_path_basename since ends-with checks don't ensure a preceding path separator.