diff --git a/PropertySheet.props b/PropertySheet.props index 0c77494..3e80690 100644 --- a/PropertySheet.props +++ b/PropertySheet.props @@ -4,7 +4,7 @@ 0 7 - 2 + 3 diff --git a/adapter.cpp b/adapter.cpp index 83a9eca..5e9f1f6 100644 --- a/adapter.cpp +++ b/adapter.cpp @@ -119,7 +119,9 @@ OvpnAdapterDestroy(NETADAPTER netAdapter) device->Adapter = WDF_NO_HANDLE; ExReleaseSpinLockExclusive(&device->SpinLock, irql); - NetAdapterStop(netAdapter); + // TODO: this breaks on Windows 10 when called from EvtCleanupCallback, is this call even needed? + // NetAdapterStop(netAdapter); + WdfObjectDelete(netAdapter); }