Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cedar/Client.c')
-rw-r--r--src/Cedar/Client.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c
index 622c57d5..77cc045c 100644
--- a/src/Cedar/Client.c
+++ b/src/Cedar/Client.c
@@ -10590,6 +10590,13 @@ CLIENT *CiNewClient()
ci_num_active_sessions = 0;
}
+#ifdef OS_WIN32
+ if (MsIsWindows7())
+ {
+ c->MsSuspendHandler = MsNewSuspendHandler();
+ }
+#endif // OS_WIN32
+
c->CmSetting = ZeroMalloc(sizeof(CM_SETTING));
@@ -10811,6 +10818,13 @@ void CiCleanupClient(CLIENT *c)
Free(c->CmSetting);
+#ifdef OS_WIN32
+ if (c->MsSuspendHandler != NULL)
+ {
+ MsFreeSuspendHandler(c->MsSuspendHandler);
+ }
+#endif // OS_WIN32
+
Free(c);
#ifdef OS_WIN32