mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
Pageant now detects if it is already running and refuses to start if so
[originally from svn r624]
This commit is contained in:
parent
603619cbfe
commit
1dc5147efb
@ -545,6 +545,15 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
|
|||||||
WNDCLASS wndclass;
|
WNDCLASS wndclass;
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* First bomb out totally if we are already running.
|
||||||
|
*/
|
||||||
|
if (FindWindow("Pageant", "Pageant")) {
|
||||||
|
MessageBox(NULL, "Pageant is already running", "Pageant Error",
|
||||||
|
MB_ICONERROR | MB_OK);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
instance = inst;
|
instance = inst;
|
||||||
|
|
||||||
if (!prev) {
|
if (!prev) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user