Mercurial > flash_v2
diff host/tools/configtool/standalone/wxwin/admindlg.cpp @ 816:b4a3f003fc22
* standalone/wxwin/appsettings.cpp: Look in the right place for the
eCos repository location under Linux.
* standalone/wxwin/admindlg.cpp: Allow addition of EPKs with no
pkgadd.txt since this file should be optional.
| author | jld |
|---|---|
| date | Fri, 07 Mar 2003 15:09:06 +0000 |
| parents | 9af89f295088 |
| children | 97ac17e0e4de |
line wrap: on
line diff
--- a/host/tools/configtool/standalone/wxwin/admindlg.cpp +++ b/host/tools/configtool/standalone/wxwin/admindlg.cpp @@ -255,7 +255,7 @@ void ecAdminDialog::OnAdd(wxCommandEvent // read the license file wxFile fileLicenseFile; - if (fileLicenseFile.Open (strLicenseFile, wxFile::read)) + if (fileLicenseFile.Exists (strLicenseFile) && fileLicenseFile.Open (strLicenseFile, wxFile::read)) { //TRACE (_T("License file found at %s\n"), strLicenseFile); const off_t dwLicenseLength = fileLicenseFile.Length ();
