mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
Commit51ee32f5f8moved the `WNetClearConnections()` in the main Winlogon thread, where it now runs. `WNetClearConnections()` calls a 3rd-party module (nfs41_np.dll) that invokes `kernel32!OutputDebugStringA()`. The SEH usage pattern in `OutputDebugStringA()`, when compiled with GCC and PSEH, generates an erroneous chain of exception handlers, that, when running in an execution environment like that of winlogon.exe, triggers a crash. See CORE-20316 for more details and testing. As a temporary measure, hackfix away the problem by surrounding the `WNetClearConnections()` call in a `_SEH2_TRY/_SEH2_EXCEPT` block (the net effect is to "add" the missing exception handler entry). Hack for commit51ee32f5f8CORE-20307 CORE-20309 CORE-20316