mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
Fix an EOF-testing goof in winhandl.c.
I was having a play with clang's MSVC compatibility mode, just to see how much of PuTTY it could compile, and one of its warnings pointed out this error which must have crept in when I was changing the EOF flags in winhandl.c from booleans to three-state enums - I left the ! on the front of what was previously an if (!thing) and needed to turn into if (thing == EOF_NO).
This commit is contained in:
parent
f6c1c8819b
commit
13d52fcb03
@ -533,7 +533,7 @@ void handle_write_eof(struct handle *h)
|
||||
* direction!
|
||||
*/
|
||||
assert(h->type == HT_OUTPUT);
|
||||
if (!h->u.o.outgoingeof == EOF_NO) {
|
||||
if (h->u.o.outgoingeof == EOF_NO) {
|
||||
h->u.o.outgoingeof = EOF_PENDING;
|
||||
handle_try_output(&h->u.o);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user