added a safety mechanism to make sure the new directory rooting loop in DirProc() doesn't loop infinitely

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5676 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-07-12 16:40:04 +00:00
parent 5d311c78c8
commit dbdba710e6

View file

@ -1037,6 +1037,13 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
// don't call trimslashtoend() which will destroy the string
break;
}
if (s[0] == '\0')
{
// trimslashtoend() was called one too many time for some reason
// bail out instead of looping infinitely...
break;
}
}
}
}