We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55db190 commit 1cf26c0Copy full SHA for 1cf26c0
src/node_main.cc
@@ -1,7 +1,15 @@
1
#include "node.h"
2
3
#ifdef _WIN32
4
+#include <VersionHelpers.h>
5
+
6
int wmain(int argc, wchar_t *wargv[]) {
7
+ if (!IsWindows7OrGreater()) {
8
+ fprintf(stderr, "This application is only supported on Windows 7, "
9
+ "Windows Server 2008 R2, or higher.");
10
+ exit(1);
11
+ }
12
13
// Convert argv to to UTF8
14
char** argv = new char*[argc];
15
for (int i = 0; i < argc; i++) {
0 commit comments