=================================================================== RCS file: /home/cvs/OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp 2002/08/13 10:11:52 1.6 +++ OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp 2002/08/14 00:47:51 1.7 @@ -568,10 +568,13 @@ void CAsir32guiView::OnUpdateContribhelp(CCmdUI* pCmdU // TODO: この位置に command update UI ハンドラ用のコードを追加してください char root[BUFSIZ],errmsg[BUFSIZ],helpfile[BUFSIZ]; - get_rootdir(root,sizeof(root),errmsg); - sprintf(helpfile,"%s\\bin\\cmanhelp.chm",root); - if ( _access(helpfile,04) != -1 ) - pCmdUI->Enable( TRUE ); - else - pCmdUI->Enable( FALSE ); + if ( getenv("OpenXM_WIN_ROOT") ) { + get_rootdir(root,sizeof(root),errmsg); + sprintf(helpfile,"%s\\bin\\cmanhelp.chm",root); + if ( _access(helpfile,04) != -1 ) { + pCmdUI->Enable( TRUE ); + return; + } + } + pCmdUI->Enable( FALSE ); }