From d2097f6d756cdfad7a14c127ad2fc5a23ae7f959 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 4 Jun 2006 09:59:02 +0000 Subject: [PATCH] Fixed error handling git-svn-id: svn://svn.cc65.org/cc65/trunk@3749 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/mouse/mouse_load.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/mouse/mouse_load.c b/libsrc/mouse/mouse_load.c index a04a8eaad..bc15f26d4 100644 --- a/libsrc/mouse/mouse_load.c +++ b/libsrc/mouse/mouse_load.c @@ -80,17 +80,17 @@ unsigned char __fastcall__ mouse_load_driver (const struct mouse_callbacks* c, /* If the driver did not install correctly, remove it from * memory again. */ - if (Res != MLOAD_OK) { + if (Res != MOUSE_ERR_OK) { /* Do not call mouse_uninstall here, since the driver is not * correctly installed. */ mod_free (mouse_drv); mouse_clear_ptr (); } - } - /* Return the error code */ - return Res; + /* Return the error code */ + return Res; + } } /* Error loading the driver */