summaryrefslogtreecommitdiffstats
path: root/xmrstak/cli/cli-miner.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-05 22:15:32 +0200
committerGitHub <noreply@github.com>2017-10-05 22:15:32 +0200
commite96a761d5a748ab06749a18db5e16d87739d7716 (patch)
tree5619ff90e4701dd22a39cac4cee27a217b00f54c /xmrstak/cli/cli-miner.cpp
parent34a87c64a19cbdd9f73eb0142b9e6f3f573e726e (diff)
parentf6b310dc86ec437c6df0f0f036f763bbdf010cba (diff)
downloadxmr-stak-e96a761d5a748ab06749a18db5e16d87739d7716.zip
xmr-stak-e96a761d5a748ab06749a18db5e16d87739d7716.tar.gz
Merge pull request #12 from fireice-uk/topic-large-pages-win
Fix large pages on Windows and make them more user-friendly
Diffstat (limited to 'xmrstak/cli/cli-miner.cpp')
-rw-r--r--xmrstak/cli/cli-miner.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp
index a2d950d..9be93a4 100644
--- a/xmrstak/cli/cli-miner.cpp
+++ b/xmrstak/cli/cli-miner.cpp
@@ -33,7 +33,11 @@
#include "xmrstak/version.hpp"
#ifndef CONF_NO_HTTPD
-# include "xmrstak/http//httpd.hpp"
+# include "xmrstak/http/httpd.hpp"
+#endif
+
+#ifdef _WIN32
+# include "xmrstak/misc/uac.hpp"
#endif
#include <stdlib.h>
@@ -88,6 +92,11 @@ void help()
int main(int argc, char *argv[])
{
+#ifdef _WIN32
+ if (!IsElevated() && SelfElevate(argv[0]))
+ return 0;
+#endif
+
#ifndef CONF_NO_TLS
SSL_library_init();
SSL_load_error_strings();
OpenPOWER on IntegriCloud