]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed redefinition of i
authorJulian Smart <julian@anthemion.co.uk>
Mon, 25 Aug 2003 18:42:38 +0000 (18:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 25 Aug 2003 18:42:38 +0000 (18:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/net/smapi.cpp

index 059129c5156715ad92920744cb6856a04af2a35d..3126be5a6df68f2cf6dc8f9f49937c65d5a9982e 100644 (file)
@@ -462,7 +462,7 @@ bool wxMapiSession::Send(wxMailMessage& message)
     if (nAttachmentSize)
     {
 #ifdef UNICODE
     if (nAttachmentSize)
     {
 #ifdef UNICODE
-        for (int i = 0;i < nAttachmentSize;i++)
+        for (i = 0;i < nAttachmentSize;i++)
         {
             free(mapiMessage.lpFiles[i].lpszPathName);
             free(mapiMessage.lpFiles[i].lpszFileName);
         {
             free(mapiMessage.lpFiles[i].lpszPathName);
             free(mapiMessage.lpFiles[i].lpszFileName);
@@ -473,7 +473,7 @@ bool wxMapiSession::Send(wxMailMessage& message)
     
     //Free up the Recipients and Originator memory
 #ifdef UNICODE
     
     //Free up the Recipients and Originator memory
 #ifdef UNICODE
-    for (int i = 0;i < nRecipIndex;i++)
+    for (i = 0;i < nRecipIndex;i++)
         free(mapiMessage.lpRecips[i].lpszName);
 #endif
     delete [] mapiMessage.lpRecips;
         free(mapiMessage.lpRecips[i].lpszName);
 #endif
     delete [] mapiMessage.lpRecips;