Explorar el Código

ifdef omit of deletePersistentTapDevice() in OneService for libzt builds on Windows

Joseph Henry hace 8 años
padre
commit
ee4783e3fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      service/OneService.cpp

+ 1 - 1
service/OneService.cpp

@@ -1989,7 +1989,7 @@ public:
 					*nuptr = (void *)0;
 					delete n.tap;
 					_nets.erase(nwid);
-#ifdef __WINDOWS__
+#if defined(__WINDOWS__) && !defined(ZT_SDK)
 					if ((op == ZT_VIRTUAL_NETWORK_CONFIG_OPERATION_DESTROY)&&(winInstanceId.length() > 0))
 						WindowsEthernetTap::deletePersistentTapDevice(winInstanceId.c_str());
 #endif