Fix broken logic in Windows directory query function

Mistake in a5bbdd6998
This commit is contained in:
Julian Eisel 2021-08-03 19:37:34 +02:00
parent 39e914cee7
commit 41357d556f
Notes: blender-bot 2023-11-20 12:14:32 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ double BLI_dir_free_space(const char *dir)
tmp[0] = '\\';
tmp[1] = 0; /* Just a fail-safe. */
if (ELEM(dir[0] == '/', '\\')) {
if (ELEM(dir[0], '/', '\\')) {
tmp[0] = '\\';
tmp[1] = 0;
}