Merge pull request #1910 from dagger/fix-windows-cuemodpath

windows: Fixed infinite loop in GetCueModParent
This commit is contained in:
Sam Alba 2022-03-28 18:29:38 -07:00 committed by GitHub
commit ea59c932bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ func GetCueModParent() (string, bool) {
parentDir = filepath.Dir(parentDir)
if parentDir == string(os.PathSeparator) {
if parentDir == fmt.Sprintf("%s%s", filepath.VolumeName(parentDir), string(os.PathSeparator)) {
// reached the root
parentDir = cwd // reset to working directory
break