mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[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:
parent
6f5da265c8
commit
cbff9a3046
2 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -657,6 +657,9 @@ LogoffShutdownThread(
|
|||
ret = 0;
|
||||
}
|
||||
|
||||
/* Cancel all the user connections */
|
||||
WNetClearConnections(0);
|
||||
|
||||
if (LSData->Session->UserToken)
|
||||
RevertToSelf();
|
||||
|
||||
|
|
Loading…
Reference in a new issue