From 6241cec9a47776a1114fc0c14b283b3c5738e4b4 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Sun, 16 Mar 2003 09:56:33 +0000 Subject: [PATCH] Warning icon for 'validation error' MessageBox git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2309 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/InstallOptions/InstallerOptions.cpp | 4 ++-- Plugins/InstallOptions.dll | Bin 12800 -> 12800 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Contrib/InstallOptions/InstallerOptions.cpp b/Contrib/InstallOptions/InstallerOptions.cpp index 9d8167b6..fe6e496d 100644 --- a/Contrib/InstallOptions/InstallerOptions.cpp +++ b/Contrib/InstallOptions/InstallerOptions.cpp @@ -287,14 +287,14 @@ bool ValidateFields() { // May cause problems for the install script, but no memory is problems for us. for (nIdx = 0; nIdx < nNumFields; nIdx++) { // this if statement prevents a stupid bug where a min/max length is assigned to a label control - // where the user obviously has no way of changing what is displayed. (can you say, "infinite loop"?) + // where the user obviously has no way of changing what is displayed. (can you say, "infinite loop"?) if (pFields[nIdx].nType >= FIELD_TEXT) { nLength = SendMessage(pFields[nIdx].hwnd, WM_GETTEXTLENGTH, 0, 0); if (((pFields[nIdx].nMaxLength > 0) && (nLength > pFields[nIdx].nMaxLength)) || ((pFields[nIdx].nMinLength > 0) && (nLength < pFields[nIdx].nMinLength))) { if (pFields[nIdx].pszValidateText) { - MessageBox(hConfigWindow, pFields[nIdx].pszValidateText, NULL, MB_OK); + MessageBox(hConfigWindow, pFields[nIdx].pszValidateText, NULL, MB_OK|MB_ICONWARNING); } SetFocus(pFields[nIdx].hwnd); return false; diff --git a/Plugins/InstallOptions.dll b/Plugins/InstallOptions.dll index f72026a2201980d4cfb10ec00759446ad74f6c77..8abfff94d18e1d380d4471356d2d8ddc0d1c7b9d 100644 GIT binary patch delta 144 zcmZojX-JuHf%%1J$;Qh!S(U=VjsIKP2E;H3)OmOFdH`wTZ_PD)BJ8~^d^NgR3|S15 z&$Ee|w_d7au|8BU+a1EE0b$n&x;G#5um)?b*}H);KJIX@$^V1Tn7dv03|bGAh-Vo9 n^-8fTFrM0M&3;n~WaDOWC3!B+O-8$nt{UAo`n%a)=O8Np3yC#Z delta 177 zcmZojX-JuHf%&9-@y5$HS?hzt!i{em|F@J4h+z<@^X%sJ0Mf?anrrw(*n3&{YP5rc zv-tiO*!&kgW56H)k?s!R)3Lr>$6|e`UJl6CfUs+X+?$ViSlfaOs@cDRF+MK(aIeY# zgU^_|UHA;F50{7r2M7E&6#z>A7d-$qY_c{xKjZ1m*6cT>Ku+2$t|ZUJxz%W|(KVwx MM*lY3>l|bS07!~Ir2qf`