From e66c3912e1b12d8a95b818a316c70ec6b4383aef Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 2 Mar 2005 15:53:50 +0000 Subject: [PATCH] More confusing "(BYTE *) & val" style punctuation. I blame GNU indent, although its confusion is understandable. git-svn-id: svn://svn.tartarus.org/sgt/putty@5432 cda61777-01e9-0310-a592-d414129be87e --- windows/winpgen.c | 2 +- windows/winpgntc.c | 2 +- windows/winstore.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/windows/winpgen.c b/windows/winpgen.c index d027fc78..a3d97aa8 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -662,7 +662,7 @@ void load_key_file(HWND hwnd, struct MainDlgState *state, dlgret = DialogBoxParam(hinst, MAKEINTRESOURCE(210), NULL, PassphraseProc, - (LPARAM) & pps); + (LPARAM) &pps); if (!dlgret) { ret = -2; break; diff --git a/windows/winpgntc.c b/windows/winpgntc.c index f647eefa..3ab81e7b 100644 --- a/windows/winpgntc.c +++ b/windows/winpgntc.c @@ -128,7 +128,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); diff --git a/windows/winstore.c b/windows/winstore.c index 743283f6..2e812c34 100644 --- a/windows/winstore.c +++ b/windows/winstore.c @@ -104,7 +104,7 @@ void write_setting_i(void *handle, const char *key, int value) { if (handle) RegSetValueEx((HKEY) handle, key, 0, REG_DWORD, - (CONST BYTE *) & value, sizeof(value)); + (CONST BYTE *) &value, sizeof(value)); } void close_settings_w(void *handle) @@ -157,7 +157,7 @@ int read_setting_i(void *handle, const char *key, int defvalue) if (!handle || RegQueryValueEx((HKEY) handle, key, 0, &type, - (BYTE *) & val, &size) != ERROR_SUCCESS || + (BYTE *) &val, &size) != ERROR_SUCCESS || size != sizeof(val) || type != REG_DWORD) return defvalue; else -- 2.11.0