1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 01:27:35 -05:00

Having now compiled the last few days' changes with MSVC, it's turned

up a bunch of warnings, mostly unused variables. All fixed.

[originally from svn r1058]
This commit is contained in:
Simon Tatham
2001-04-17 08:24:29 +00:00
parent 5279229ad3
commit 3abea3d4ea
6 changed files with 20 additions and 21 deletions

View File

@ -55,6 +55,12 @@ typedef DWORD (WINAPI *gsi_fn_t)
static gsi_fn_t getsecurityinfo;
#endif
/*
* Exports from pageantc.c
*/
void agent_query(void *in, int inlen, void **out, int *outlen);
int agent_exists(void);
/*
* We need this to link with the RSA code, because rsaencrypt()
* pads its data with random bytes. Since we only use rsadecrypt()
@ -1220,7 +1226,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
* Find out if Pageant is already running.
*/
already_running = FALSE;
if (FindWindow("Pageant", "Pageant"))
if (agent_exists())
already_running = TRUE;
else {