Fix: Remove FRPC settings file before re-write it

This commit is contained in:
yuanyuanxiang
2025-12-16 20:43:03 +01:00
parent d919949213
commit 934942c2cb
3 changed files with 11 additions and 6 deletions

View File

@@ -195,8 +195,11 @@ public:
}
ContextObject->hDlg = Dlg;
if(id == IDD_DIALOG_SCREEN_SPY)
m_RemoteWnds[Dlg->GetSafeHwnd()]=(CDialogBase*)Dlg;
if (id == IDD_DIALOG_SCREEN_SPY) {
EnterCriticalSection(&m_cs);
m_RemoteWnds[Dlg->GetSafeHwnd()] = (CDialogBase*)Dlg;
LeaveCriticalSection(&m_cs);
}
return 0;
}