Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added test and code to check if an error occured whilst opening the input file.
[xestiaab/.git] / source / convert.cpp
index 8f6d7d1..69926de 100644 (file)
@@ -80,6 +80,16 @@ ConvertResult ConvertContact(wxString InputFormat, wxString OutputFormat,
                
        }
        
+       wxFile InputFile;
+       
+       if (!InputFile.Open(InputFilename, wxFile::read, wxS_DEFAULT)){
+               
+               int InputFileErrNo = InputFile.GetLastError();
+               
+               return CONVERTRESULT_INPUTFILEERROR;
+               
+       }
+       
        return CONVERTRESULT_OK;
        
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy