=================================================================== RCS file: /home/cvs/OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp,v retrieving revision 1.29 retrieving revision 1.31 diff -u -p -r1.29 -r1.31 --- OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp 2013/08/30 18:18:11 1.29 +++ OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp 2014/05/10 08:23:33 1.31 @@ -734,22 +734,16 @@ BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext); FILE *fp = NULL; char *temp; - char rootdir[BUFSIZ], errmsg[BUFSIZ], hndname[_MAX_PATH]; + char hndname[_MAX_PATH]; - if (get_rootdir(rootdir, BUFSIZ, errmsg)) { - sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir); - fp = fopen(hndname,"w"); - if ( fp ) { - fprintf(fp,"%d",(unsigned int)theView->m_hWnd); - fclose(fp); - } - } - if ( temp = getenv("TEMP") ) { - sprintf(hndname,"%s\\asirgui.hnd", temp); - fp = fopen(hndname,"w"); - if ( fp ) { - fprintf(fp,"%d",(unsigned int)theView->m_hWnd); - fclose(fp); + if ( asirgui_kind == ASIRGUI_MAIN ) { + if ( temp = getenv("TEMP") ) { + sprintf(hndname,"%s\\asirgui.hnd", temp); + fp = fopen(hndname,"w"); + if ( fp ) { + fprintf(fp,"%d",(unsigned int)theView->m_hWnd); + fclose(fp); + } } } return ret;