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:
parent
5d311c78c8
commit
dbdba710e6
1 changed files with 7 additions and 0 deletions
|
@ -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
|
// don't call trimslashtoend() which will destroy the string
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s[0] == '\0')
|
||||||
|
{
|
||||||
|
// trimslashtoend() was called one too many time for some reason
|
||||||
|
// bail out instead of looping infinitely...
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue