Commit 51ee32f
committed
[WINLOGON] Close all the user network connections only at logoff (reactos#8324)
Per-user network connections (to shared drives...) are restored at user
logon: `HandleLogon() -> RestoreAllConnections()`.
These connections should be closed only at user logoff, in `HandleLogoff()`,
instead of inside the common logoff/shutdown thread, which is also invoked
at... shutdown!
- Isolate the network connections closing inside a `CloseAllConnections()`
helper (which also performs the necessary user thread impersonation).
- Invoke this helper directly inside `HandleLogoff()`, and also re-enable
the `IDS_CLOSINGNETWORKCONNECTIONS` message display.1 parent 4f61d2e commit 51ee32f
1 file changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
444 | | - | |
445 | 445 | | |
446 | | - | |
447 | 446 | | |
448 | 447 | | |
449 | 448 | | |
| |||
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
474 | | - | |
| 473 | + | |
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
| |||
491 | 490 | | |
492 | 491 | | |
493 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
494 | 504 | | |
495 | 505 | | |
496 | 506 | | |
| |||
757 | 767 | | |
758 | 768 | | |
759 | 769 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | 770 | | |
764 | 771 | | |
765 | 772 | | |
| |||
1036 | 1043 | | |
1037 | 1044 | | |
1038 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1039 | 1052 | | |
1040 | 1053 | | |
1041 | 1054 | | |
1042 | 1055 | | |
1043 | 1056 | | |
1044 | 1057 | | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | 1058 | | |
1049 | 1059 | | |
1050 | 1060 | | |
| |||
0 commit comments