[BACK]Return to asir32guiview.cpp CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / asir32gui

Diff for /OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp between version 1.17 and 1.18

version 1.17, 2007/02/13 09:20:44 version 1.18, 2008/05/02 02:12:47
Line 726  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
Line 726  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
         FILE *fp = fopen("asirgui.hnd","w");          FILE *fp = fopen("asirgui.hnd","w");
         char *temp;          char *temp;
   
         fprintf(fp,"%d",(unsigned int)theView->m_hWnd);          if ( fp ) {
         fclose(fp);  
         if ( temp = getenv("TEMP") ) {  
                 int len;  
                 char *name;  
   
                 len = strlen(temp);  
                 name = (char *)malloc(len+BUFSIZ);  
                 sprintf(name,"%s\\asirgui.hnd",temp);  
                 fopen(name,"w");  
                 fprintf(fp,"%d",(unsigned int)theView->m_hWnd);                  fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                 fclose(fp);                  fclose(fp);
                   if ( temp = getenv("TEMP") ) {
                           int len;
                           char *name;
   
                           len = strlen(temp);
                           name = (char *)malloc(len+BUFSIZ);
                           sprintf(name,"%s\\asirgui.hnd",temp);
                           fopen(name,"w");
                           fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                           fclose(fp);
                   }
         }          }
         return ret;          return ret;
 }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>