~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call ReleaseCapture() on any mouse-button-up event. Instead,
[sgt/putty]
/
windows
/
wincons.c
diff --git
a/windows/wincons.c
b/windows/wincons.c
index
e0f0215
..
20fda05
100644
(file)
--- a/
windows/wincons.c
+++ b/
windows/wincons.c
@@
-1,5
+1,5
@@
/*
/*
- *
console.c:
various interactive-prompt routines shared between
+ *
wincons.c -
various interactive-prompt routines shared between
* the Windows console PuTTY tools
*/
* the Windows console PuTTY tools
*/
@@
-294,8
+294,7
@@
void console_provide_logctx(void *logctx)
void logevent(void *frontend, const char *string)
{
void logevent(void *frontend, const char *string)
{
- if (console_logctx)
- log_eventlog(console_logctx, string);
+ log_eventlog(console_logctx, string);
}
static void console_data_untrusted(HANDLE hout, const char *data, int len)
}
static void console_data_untrusted(HANDLE hout, const char *data, int len)
@@
-315,7
+314,7
@@
int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
*/
{
int i;
*/
{
int i;
- for (i = 0; i < p->n_prompts; i++)
+ for (i = 0; i <
(int)
p->n_prompts; i++)
memset(p->prompts[i]->result, 0, p->prompts[i]->result_len);
}
memset(p->prompts[i]->result, 0, p->prompts[i]->result_len);
}