From 7bcbfa999cd4c30ae227b9a88b285146a27fae90 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 15 Sep 2003 10:54:43 +0000 Subject: [PATCH] Add missing (); small optimization for DosGet date/time. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@691 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/inthndlr.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index ea97413..2e85b9f 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -407,7 +407,7 @@ dispatch: /* Check for Ctrl-Break */ if (break_ena || (lr.AH >= 1 && lr.AH <= 5) || (lr.AH >= 8 && lr.AH <= 0x0b)) - check_handle_break; + check_handle_break(); /* The dispatch handler */ switch (lr.AH) @@ -676,8 +676,7 @@ dispatch: /* Set Date */ case 0x2b: - rc = DosSetDate((struct dosdate *)&lr.CX); - lr.AL = (rc != SUCCESS ? 0xff : 0); + lr.AL = DosSetDate ((struct dosdate*)&lr.CX) == SUCCESS ? 0 : 0xFF; break; /* Get Time */ @@ -685,10 +684,9 @@ dispatch: DosGetTime((struct dostime *)&lr.CL); break; - /* Set Date */ + /* Set Time */ case 0x2d: - rc = DosSetTime((struct dostime *)&lr.CL); - lr.AL = (rc != SUCCESS ? 0xff : 0); + lr.AL = DosSetTime ((struct dostime*)&lr.CX) == SUCCESS ? 0 : 0xFF; break; /* Set verify flag */