From 947845259095ed8e53606e554f305202358b1cb7 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 17 Feb 2007 15:24:44 +0000 Subject: [PATCH] fixed bug #1661677 - InstallOptions MessageBox git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4939 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/InstallOptions/InstallerOptions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Contrib/InstallOptions/InstallerOptions.cpp b/Contrib/InstallOptions/InstallerOptions.cpp index a8928ea8..b195eab1 100644 --- a/Contrib/InstallOptions/InstallerOptions.cpp +++ b/Contrib/InstallOptions/InstallerOptions.cpp @@ -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;