]> git.saurik.com Git - wxWidgets.git/commitdiff
Patch [665886]: Fix smapi.cpp to support new for loop scoping.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 19 Jan 2003 10:01:52 +0000 (10:01 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 19 Jan 2003 10:01:52 +0000 (10:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/net/smapi.cpp

index 81617a39b8ee192886df367654a544ae627aa2e3..b684d08e2b05c939e4c5c805ad588a0ffed78c93 100644 (file)
@@ -301,7 +301,8 @@ bool wxMapiSession::Send(wxMailMessage& message)
     //Setup the "To" recipients
     int nRecipIndex = 0;
     int nToSize = message.m_to.GetCount();
     //Setup the "To" recipients
     int nRecipIndex = 0;
     int nToSize = message.m_to.GetCount();
-    for (int i=0; i<nToSize; i++)
+    int i;
+    for (i=0; i<nToSize; i++)
     {
         MapiRecipDesc& recip = mapiMessage.lpRecips[nRecipIndex];
         ZeroMemory(&recip, sizeof(MapiRecipDesc));
     {
         MapiRecipDesc& recip = mapiMessage.lpRecips[nRecipIndex];
         ZeroMemory(&recip, sizeof(MapiRecipDesc));