windows: Fixed infinite loop in GetCueModParent
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
parent
2a6b91cf72
commit
19b976a8ed
@ -167,7 +167,7 @@ func GetCueModParent() (string, bool) {
|
|||||||
|
|
||||||
parentDir = filepath.Dir(parentDir)
|
parentDir = filepath.Dir(parentDir)
|
||||||
|
|
||||||
if parentDir == string(os.PathSeparator) {
|
if parentDir == fmt.Sprintf("%s%s", filepath.VolumeName(parentDir), string(os.PathSeparator)) {
|
||||||
// reached the root
|
// reached the root
|
||||||
parentDir = cwd // reset to working directory
|
parentDir = cwd // reset to working directory
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user