mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
Fixed code style
Conflicts: src/lib/arch/win32/ArchPluginWindows.cpp
This commit is contained in:
committed by
Jerry (Xinyu Hou)
parent
88214a0d3c
commit
5a9cbc97e3
@@ -810,11 +810,11 @@ MSWindowsKeyState::fakeCtrlAltDel()
|
||||
// current thread must be on that desktop to do the broadcast
|
||||
// and we can't switch just any thread because some own windows
|
||||
// or hooks. so start a new thread to do the real work.
|
||||
HANDLE hEvtSendSas = OpenEvent( EVENT_MODIFY_STATE, FALSE, "Global\\SendSAS" );
|
||||
if ( hEvtSendSas ) {
|
||||
HANDLE hEvtSendSas = OpenEvent(EVENT_MODIFY_STATE, FALSE, "Global\\SendSAS");
|
||||
if (hEvtSendSas) {
|
||||
LOG((CLOG_DEBUG "found the SendSAS event - signaling my launcher to simulate ctrl+alt+del"));
|
||||
SetEvent( hEvtSendSas );
|
||||
CloseHandle( hEvtSendSas );
|
||||
SetEvent(hEvtSendSas);
|
||||
CloseHandle(hEvtSendSas);
|
||||
}
|
||||
else {
|
||||
Thread cad(new FunctionJob(&MSWindowsKeyState::ctrlAltDelThread));
|
||||
|
||||
Reference in New Issue
Block a user