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:
parent
b8cc7d57d6
commit
9478452590
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue