Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added test and code to check if an error occured whilst opening the input file.
[xestiaab/.git]
/
source
/
convert.cpp
diff --git
a/source/convert.cpp
b/source/convert.cpp
index
8f6d7d1
..
69926de
100644
(file)
--- a/
source/convert.cpp
+++ b/
source/convert.cpp
@@
-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
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy