windows: Fixed infinite loop in GetCueModParent

Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
Sam Alba 2022-03-28 18:03:28 -07:00
parent 2a6b91cf72
commit 19b976a8ed

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