diff options
Diffstat (limited to 'src/plugins/console.c')
-rw-r--r-- | src/plugins/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/console.c b/src/plugins/console.c index 41ef434e9..fca087618 100644 --- a/src/plugins/console.c +++ b/src/plugins/console.c @@ -26,7 +26,7 @@ }while(0) #define sleep Sleep -#define pipe_create(p) ( CreatePipe(&p[PIPE_READ], &p[PIPE_WRITE], NULL, 1) != 0 ) +#define pipe_create(p) (CreatePipe(&p[PIPE_READ], &p[PIPE_WRITE], NULL, 1) == 0) #define pipe_read(p,data,len) do{ DWORD _b_; ReadFile(p[PIPE_READ], data, len, &_b_, NULL); }while(0) #define pipe_write(p,data,len) do{ DWORD _b_; WriteFile(p[PIPE_WRITE], data, len, &_b_, NULL); }while(0) #define pipe_close(p,side) CloseHandle(p[side]) |