[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

@ -22,6 +22,6 @@ add_rc_deps(winlogon.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winlogon.ico)
add_executable(winlogon ${SOURCE} winlogon.rc)
target_link_libraries(winlogon wine)
set_module_type(winlogon win32gui)
add_importlibs(winlogon user32 advapi32 userenv secur32 rpcrt4 msvcrt kernel32 ntdll)
add_importlibs(winlogon user32 advapi32 userenv secur32 rpcrt4 mpr msvcrt kernel32 ntdll)
add_pch(winlogon winlogon.h SOURCE)
add_cd_file(TARGET winlogon DESTINATION reactos/system32 FOR all)

View file

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