From d266bdf36406f1eccaab29fd7e09b2005acc86ad Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sun, 13 Mar 2022 22:26:56 -0500 Subject: [PATCH] other path bugs --- include/bh.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/bh.h b/include/bh.h index 5bff4408..ad7aa4b7 100644 --- a/include/bh.h +++ b/include/bh.h @@ -1741,11 +1741,12 @@ char* bh_path_convert_separators(char* path) { bh_dir bh_dir_open(char* path) { #ifdef _BH_WINDOWS - for (int i=0; ihndl = FindFirstFileA(path, &dir->found_file); + dir->hndl = FindFirstFileA(new_path, &dir->found_file); if (dir->hndl == INVALID_HANDLE_VALUE) { return NULL; } -- 2.25.1