Fixed the overflow checks for all IDIV instructions for 286+ CPU's;

Fixed the mouse close functions.
This commit is contained in:
OBattler
2017-12-14 01:35:04 +01:00
parent 044559f4e9
commit 8c38b94594
5 changed files with 12 additions and 17 deletions

View File

@@ -10,7 +10,7 @@
*
* TODO: Add the Genius Serial Mouse.
*
* Version: @(#)mouse_serial.c 1.0.16 2017/12/09
* Version: @(#)mouse_serial.c 1.0.17 2017/12/13
*
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
*/
@@ -199,12 +199,13 @@ sermouse_close(void *priv)
mouse_t *dev = (mouse_t *)priv;
/* Detach serial port from the mouse. */
if (dev->serial != NULL) {
if ((dev != NULL) && (dev->serial != NULL)) {
dev->serial->rcr_callback = NULL;
dev->serial->rcr_callback_p = NULL;
}
free(dev);
dev = NULL;
}