Exit after error message when run on Windows 7

This commit is contained in:
Sebastian Messmer 2018-12-22 10:18:08 +01:00
parent fcd239ac65
commit 0b03326ca2

View File

@ -22,6 +22,7 @@ int main(int argc, const char *argv[]) {
#if defined(_MSC_VER) #if defined(_MSC_VER)
if (!IsWindows10OrGreater()) { if (!IsWindows10OrGreater()) {
std::cerr << "CryFS is currently only supported on Windows 10 (or later)." << std::endl; std::cerr << "CryFS is currently only supported on Windows 10 (or later)." << std::endl;
exit(1);
} }
#endif #endif