summaryrefslogtreecommitdiff
path: root/src/plugins/console.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-08 15:40:41 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-08 15:40:41 +0000
commit14710780f3b6043e6d9c859137159e76d0bb1e51 (patch)
tree42d80812c3bf0a8a6ea440ef0f6e03a658f4e40e /src/plugins/console.c
parent4e5a65295ad732fd53630d8c29912ec047038d9d (diff)
downloadhercules-14710780f3b6043e6d9c859137159e76d0bb1e51.tar.gz
hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.tar.bz2
hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.tar.xz
hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.zip
* Silenced the plugin export messages during startup [ultramage]
* Fixed an old debug message displaying %d instead of a number * Commented out a login_log call (sql doesn't implement that function!) * Found the reason why the console didn't want to run on windows * Moved the plugin.def file to the plugins dir and added console.def git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9632 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/plugins/console.c')
-rw-r--r--src/plugins/console.c2
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])