wxChmInputStream::CreateHHPStream()
{
wxFileName file;
- bool topic = false;
bool hhc = false;
bool hhk = false;
wxInputStream *i;
break;
case 2: // DEFAULT_TOPIC
tmp = "Default Topic=";
- topic = true;
break;
case 3: // TITLE
tmp = "Title=";
}
wxFileName leftFilename = wxFileSystem::URLToFileName(left);
+ if (!leftFilename.FileExists())
+ return NULL;
// Open a stream to read the content of the chm-file
s = new wxChmInputStream(leftFilename.GetFullPath(), right, true);