diff --git a/base/system/winlogon/sas.c b/base/system/winlogon/sas.c index cb06557ee43..f085db14d6b 100644 --- a/base/system/winlogon/sas.c +++ b/base/system/winlogon/sas.c @@ -497,7 +497,13 @@ CloseAllConnections( { if (!Session->UserToken || !ImpersonateLoggedOnUser(Session->UserToken)) return; - WNetClearConnections(NULL); + _SEH2_TRY // Temporary HACK to avoid SEH crashes triggered by OutputDebugStringA() + { // calls from WNetClearConnections(). CORE-20307, CORE-20309, CORE-20316 + WNetClearConnections(NULL); + } + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + {} + _SEH2_END; RevertToSelf(); }