Mercurial > flash_v2
diff host/tools/configtool/common/win32/CTCommonDoc.cpp @ 78:59d97b6ba612 ecos-sw-2000-03-28
Merge from eCos master repository on 2000-03-28-19:50:47-BST
| author | jlarmour |
|---|---|
| date | Tue, 28 Mar 2000 20:13:29 +0000 |
| parents | 435cced73e2f |
| children | 6736c52df507 |
line wrap: on
line diff
--- a/host/tools/configtool/common/win32/CTCommonDoc.cpp +++ b/host/tools/configtool/common/win32/CTCommonDoc.cpp @@ -1744,9 +1744,10 @@ void CConfigToolDoc::OnFileImport() bool CConfigToolDoc::QualifyDocURL(CString &strURL) { if(-1==strURL.Find(_T("://"))){ - // Relative URL - qualify it as a file URL - strURL=DocBase()+CFileName(strURL); strURL.Replace(_TCHAR('/'),_TCHAR('\\')); + if (! CFileName (strURL).IsFile ()) { // if not an absolute filepath + strURL = DocBase () + CFileName (strURL); // prepend the doc directory path + } strURL=_T("file://")+strURL; }
