Show error message on pre-10 Windows
This commit is contained in:
parent
d68247070f
commit
2648dd81ee
@ -5,6 +5,7 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <cpp-utils/network/WinHttpClient.h>
|
||||
#include <VersionHelpers.h>
|
||||
#else
|
||||
#include <cpp-utils/network/CurlHttpClient.h>
|
||||
#endif
|
||||
@ -18,6 +19,12 @@ using std::make_shared;
|
||||
using std::cerr;
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
#if defined(_MSC_VER)
|
||||
if (!IsWindows10OrGreater()) {
|
||||
std::cerr << "CryFS is currently only supported on Windows 10 (or later)." << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
try {
|
||||
auto &keyGenerator = Random::OSRandom();
|
||||
#if defined(_MSC_VER)
|
||||
|
Loading…
x
Reference in New Issue
Block a user