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:
parent
c1a38ce8f4
commit
d2097f6d75
@ -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
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
|
||||
/* Error loading the driver */
|
||||
return MOUSE_ERR_CANNOT_LOAD;
|
||||
|
Loading…
Reference in New Issue
Block a user