Skip to content

Commit

Permalink
Merge pull request #3 from bit-hack/fix_opendir
Browse files Browse the repository at this point in the history
Ensure db_findfirst path is resolved
  • Loading branch information
dje4321 authored May 18, 2024
2 parents 6985b8c + aa3c5c1 commit 88234b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plib/db/db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2577,6 +2577,7 @@ static int db_findfirst(const char* path, DB_FIND_DATA* findData)
char basePath[COMPAT_MAX_PATH];
compat_makepath(basePath, drive, dir, NULL, NULL);

compat_resolve_path(basePath);
findData->dir = opendir(basePath);
if (findData->dir == NULL) {
return -1;
Expand Down

0 comments on commit 88234b7

Please sign in to comment.