fixed bug #1661677 - InstallOptions MessageBox

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4939 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-02-17 15:24:44 +00:00
parent b8cc7d57d6
commit 9478452590

View file

@ -249,7 +249,9 @@ bool INLINE ValidateFields() {
if (((pField->nMaxLength > 0) && (nLength > pField->nMaxLength)) ||
((pField->nMinLength > 0) && (nLength < pField->nMinLength))) {
if (pField->pszValidateText) {
MessageBox(hConfigWindow, pField->pszValidateText, NULL, MB_OK|MB_ICONWARNING);
char szTitle[1024];
GetWindowText(hMainWindow, szTitle, sizeof(szTitle));
MessageBox(hConfigWindow, pField->pszValidateText, szTitle, MB_OK|MB_ICONWARNING);
}
mySetFocus(pField->hwnd);
return false;