mirror of
https://github.com/amnezia-vpn/win-split-tunnel.git
synced 2026-05-17 08:16:00 +03:00
Add back missing call to procregistry::DeleteEntry()
This commit is contained in:
@@ -414,9 +414,25 @@ HandleProcessDeparting
|
||||
|
||||
WdfSpinLockAcquire(processRegistry->Lock);
|
||||
|
||||
NT_ASSERT(procregistry::DeleteEntry(processRegistry->Instance, registryEntry));
|
||||
const bool deleteSuccessful = procregistry::DeleteEntry(processRegistry->Instance, registryEntry);
|
||||
|
||||
WdfSpinLockRelease(processRegistry->Lock);
|
||||
|
||||
NT_ASSERT(deleteSuccessful);
|
||||
|
||||
//
|
||||
// This is unlikely to ever be an issue,
|
||||
// but if it was, we'd want to know about it.
|
||||
//
|
||||
|
||||
if (!deleteSuccessful)
|
||||
{
|
||||
DECLARE_CONST_UNICODE_STRING(errorMessage, L"Failed in call to procregistry::DeleteEntry()");
|
||||
|
||||
auto errorEvent = eventing::BuildErrorMessageEvent(STATUS_UNSUCCESSFUL, &errorMessage);
|
||||
|
||||
eventing::Emit(Context->Eventing, &errorEvent);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user