summaryrefslogtreecommitdiff
path: root/os-win.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-19 11:18:54 -0400
committerpommicket <pommicket@gmail.com>2023-10-19 11:18:54 -0400
commit553f01db25db52eea5396b575c66e2a6e77db1ce (patch)
tree75e7452c311719bbd9f022d8c549052db82ebce3 /os-win.c
parent94c2b5a926cd7273272fb9fe268dd61c50426c59 (diff)
is_path_separator
Diffstat (limited to 'os-win.c')
-rw-r--r--os-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os-win.c b/os-win.c
index 85d6b89..78d973d 100644
--- a/os-win.c
+++ b/os-win.c
@@ -61,7 +61,7 @@ FsDirectoryEntry **fs_list_directory(const char *dirname) {
HANDLE fhandle;
assert(*dirname);
sprintf_s(file_pattern, sizeof file_pattern, "%s%s*", dirname,
- strchr(ALL_PATH_SEPARATORS, dirname[strlen(dirname) - 1]) ? "" : "\\");
+ is_path_separator(dirname[strlen(dirname) - 1]) ? "" : "\\");
wchar_t wide_pattern[4100] = {0};
if (MultiByteToWideChar(CP_UTF8, 0, file_pattern, -1, wide_pattern, arr_count(wide_pattern)) == 0)
return NULL;