summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-03-06 14:06:31 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-03-06 14:06:31 -0800
commit742261c7fc8181e5c1a7567d9fdf51518d90c8bf (patch)
tree7a64ecc93c3d32a6bdd4d2ece870eb03eb052ec3 /main.cpp
parent939cdc82a2041701c9f08c1745d0175f2c4f62c8 (diff)
downloadinfinitytier-742261c7fc8181e5c1a7567d9fdf51518d90c8bf.tar.gz
infinitytier-742261c7fc8181e5c1a7567d9fdf51518d90c8bf.zip
(1) Fix menu bar item font size on Windows, (2) fix for possible Windows EthernetTap infinite loop while enumerating registry.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 7ccf4e4a..497b29ae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -599,12 +599,13 @@ int main(int argc,char **argv)
#else
pathToInf = ZT_DEFAULTS.defaultHomePath + "\\tap-windows\\x86\\zttap200.inf";
#endif
+ printf("Installing ZeroTier One virtual Ethernet port driver. You may be"ZT_EOL_S"prompted to authorize driver installation."ZT_EOL_S""ZT_EOL_S);
BOOL needReboot = FALSE;
if (DiInstallDriverA(NULL,pathToInf.c_str(),DIIRFLAG_FORCE_INF,&needReboot)) {
- fprintf(stderr,"%s: driver successfully installed from %s"ZT_EOL_S,argv[0],pathToInf.c_str());
+ printf("%s: driver successfully installed from %s"ZT_EOL_S,argv[0],pathToInf.c_str());
return 0;
} else {
- fprintf(stderr,"%s: failed installing %s: %d"ZT_EOL_S,argv[0],pathToInf.c_str(),(int)GetLastError());
+ printf("%s: failed installing %s: %d"ZT_EOL_S,argv[0],pathToInf.c_str(),(int)GetLastError());
return 3;
}
} break;