1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 15:05:14 +00:00

Fixed error handling

git-svn-id: svn://svn.cc65.org/cc65/trunk@3749 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2006-06-04 09:59:02 +00:00
parent c1a38ce8f4
commit d2097f6d75

View File

@ -80,18 +80,18 @@ unsigned char __fastcall__ mouse_load_driver (const struct mouse_callbacks* c,
/* If the driver did not install correctly, remove it from /* If the driver did not install correctly, remove it from
* memory again. * memory again.
*/ */
if (Res != MLOAD_OK) { if (Res != MOUSE_ERR_OK) {
/* Do not call mouse_uninstall here, since the driver is not /* Do not call mouse_uninstall here, since the driver is not
* correctly installed. * correctly installed.
*/ */
mod_free (mouse_drv); mod_free (mouse_drv);
mouse_clear_ptr (); mouse_clear_ptr ();
} }
}
/* Return the error code */ /* Return the error code */
return Res; return Res;
} }
}
/* Error loading the driver */ /* Error loading the driver */
return MOUSE_ERR_CANNOT_LOAD; return MOUSE_ERR_CANNOT_LOAD;