1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-18 19:48:05 -05:00

More confusing "(BYTE *) & val" style punctuation.

I blame GNU indent, although its confusion is understandable.

[originally from svn r5432]
This commit is contained in:
Jacob Nevins 2005-03-02 15:53:50 +00:00
parent 2dfee45b91
commit 3fc33c4118
3 changed files with 4 additions and 4 deletions

View File

@ -662,7 +662,7 @@ void load_key_file(HWND hwnd, struct MainDlgState *state,
dlgret = DialogBoxParam(hinst, dlgret = DialogBoxParam(hinst,
MAKEINTRESOURCE(210), MAKEINTRESOURCE(210),
NULL, PassphraseProc, NULL, PassphraseProc,
(LPARAM) & pps); (LPARAM) &pps);
if (!dlgret) { if (!dlgret) {
ret = -2; ret = -2;
break; break;

View File

@ -128,7 +128,7 @@ int agent_query(void *in, int inlen, void **out, int *outlen,
* query is required to be synchronous) or CreateThread failed. * query is required to be synchronous) or CreateThread failed.
* Either way, we need a synchronous request. * 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) { if (id > 0) {
retlen = 4 + GET_32BIT(p); retlen = 4 + GET_32BIT(p);
ret = snewn(retlen, unsigned char); ret = snewn(retlen, unsigned char);

View File

@ -104,7 +104,7 @@ void write_setting_i(void *handle, const char *key, int value)
{ {
if (handle) if (handle)
RegSetValueEx((HKEY) handle, key, 0, REG_DWORD, RegSetValueEx((HKEY) handle, key, 0, REG_DWORD,
(CONST BYTE *) & value, sizeof(value)); (CONST BYTE *) &value, sizeof(value));
} }
void close_settings_w(void *handle) void close_settings_w(void *handle)
@ -157,7 +157,7 @@ int read_setting_i(void *handle, const char *key, int defvalue)
if (!handle || if (!handle ||
RegQueryValueEx((HKEY) handle, key, 0, &type, RegQueryValueEx((HKEY) handle, key, 0, &type,
(BYTE *) & val, &size) != ERROR_SUCCESS || (BYTE *) &val, &size) != ERROR_SUCCESS ||
size != sizeof(val) || type != REG_DWORD) size != sizeof(val) || type != REG_DWORD)
return defvalue; return defvalue;
else else