X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinpgntc.c;h=2259e6a10b789e5128e34988b3c1415748799646;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=f647eefa9c5b389a7cfc9992ef58980b39268118;hpb=cb45b9cc253d6f661b2d90003b699c1558ca2bf4;p=PuTTY.git diff --git a/windows/winpgntc.c b/windows/winpgntc.c index f647eefa..2259e6a1 100644 --- a/windows/winpgntc.c +++ b/windows/winpgntc.c @@ -10,12 +10,6 @@ #define AGENT_COPYDATA_ID 0x804e50ba /* random goop */ #define AGENT_MAX_MSGLEN 8192 -#define GET_32BIT(cp) \ - (((unsigned long)(unsigned char)(cp)[0] << 24) | \ - ((unsigned long)(unsigned char)(cp)[1] << 16) | \ - ((unsigned long)(unsigned char)(cp)[2] << 8) | \ - ((unsigned long)(unsigned char)(cp)[3])) - int agent_exists(void) { HWND hwnd; @@ -128,7 +122,7 @@ int agent_query(void *in, int inlen, void **out, int *outlen, * query is required to be synchronous) or CreateThread failed. * Either way, we need a synchronous request. */ - id = SendMessage(hwnd, WM_COPYDATA, (WPARAM) NULL, (LPARAM) & cds); + id = SendMessage(hwnd, WM_COPYDATA, (WPARAM) NULL, (LPARAM) &cds); if (id > 0) { retlen = 4 + GET_32BIT(p); ret = snewn(retlen, unsigned char);