diff --git a/src/conio/ciolib.c b/src/conio/ciolib.c
index 2ded0f5e45cb707c4e8736cfae2b4ba7784d1235..8cd93a89224098b276cb0a37ae58326667df2620 100644
--- a/src/conio/ciolib.c
+++ b/src/conio/ciolib.c
@@ -410,7 +410,7 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_getche(void)
 		ciolib_putch(ch);
 		return(ch);
 	}
-	if(cio_api.getche())
+	if(cio_api.getche)
 		return(cio_api.getche());
 	else {
 		while(1) {