From: cuz Date: Sun, 4 Jun 2006 09:59:02 +0000 (+0000) Subject: Fixed error handling X-Git-Tag: V2.12.0~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2097f6d756cdfad7a14c127ad2fc5a23ae7f959;p=cc65 Fixed error handling git-svn-id: svn://svn.cc65.org/cc65/trunk@3749 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */