From: Brendan Hansen Date: Mon, 14 Mar 2022 03:26:56 +0000 (-0500) Subject: other path bugs X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d266bdf36406f1eccaab29fd7e09b2005acc86ad;p=onyx.git other path bugs --- 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; }