[WINLOGON] On logoff, also disconnect from any remote location

This avoids keeping connections open and reopening them as soon
as the user reopens their session.
This fixes network shared being duplicated each time session
is reopened.

CORE-15012
This commit is contained in:
Pierre Schweitzer 2018-09-11 08:15:37 +02:00
parent 6f5da265c8
commit cbff9a3046
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 4 additions and 1 deletions

View file

@ -657,6 +657,9 @@ LogoffShutdownThread(
ret = 0;
}
/* Cancel all the user connections */
WNetClearConnections(0);
if (LSData->Session->UserToken)
RevertToSelf();