Skip to content

Commit

Permalink
extract: Do not check root path on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: sekaiacg <[email protected]>
  • Loading branch information
sekaiacg committed Mar 25, 2023
1 parent 1fbae2a commit f942a3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extract/ExtractOperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace skkk {
configDir = "./config";
outDir = "./" + imgBaseName;
} else {
#if !defined(_WIN32) || !defined(__CYGWIN__)
const char *oDir = outDir.c_str();
auto oSize = outDir.size();
// check dir is root: "/","//","///",...
Expand All @@ -67,6 +68,10 @@ namespace skkk {
configDir = outDir + "/config";
outDir = outDir + "/" + imgBaseName;
}
#else
configDir = outDir + "/config";
outDir = outDir + "/" + imgBaseName;
#endif
}
return rc;
}
Expand Down

0 comments on commit f942a3b

Please sign in to comment.