Fix Windows path split in tester_v3_c parse_file_arg too

parse_file_arg() duplicated the '/' only base-dir split from
parse_path_for_test(); a Windows-style arg (models\Cube\Cube.gltf)
yielded an empty base dir and external buffers failed to load.
This commit is contained in:
Syoyo Fujita
2026-07-31 22:17:13 +09:00
parent b30be77ad7
commit 0d9ce1a956
+1
View File
@@ -1660,6 +1660,7 @@ static int parse_file_arg(const char *path) {
}
slash = strrchr(path, '/');
if (!slash) slash = strrchr(path, '\\');
base_len = slash ? (size_t)(slash - path) : 0;
tg3_error_stack_init(&errors);