[Commits] Rev 2927: Fix bogus "invalid port" message in file:///H:/bzr/5.2-windows-packaging/

Vladislav Vaintroub wlad at montyprogram.com
Tue Jan 18 14:34:35 EET 2011


At file:///H:/bzr/5.2-windows-packaging/

------------------------------------------------------------
revno: 2927
revision-id: wlad at montyprogram.com-20110118123435-e65hp3uyuo7iozjf
parent: wlad at montyprogram.com-20110117202058-56arlhuq45ivfdca
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.2-windows-packaging
timestamp: Tue 2011-01-18 13:34:35 +0100
message:
  Fix bogus "invalid port" message
-------------- next part --------------
=== modified file 'win/packaging/ca/CustomAction.cpp'
--- a/win/packaging/ca/CustomAction.cpp	2011-01-16 21:00:19 +0000
+++ b/win/packaging/ca/CustomAction.cpp	2011-01-18 12:34:35 +0000
@@ -470,7 +470,7 @@
       haveInvalidPort = true;
     else
     {
-      for (DWORD i=0; i< PortLen;i++)
+      for (DWORD i=0; i< PortLen && Port[i] != 0;i++)
       {
         if(Port[i] < '0' || Port[i] >'9')
         {



More information about the commits mailing list