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
This commit is contained in:
Bart Oldeman 2003-09-15 10:54:43 +00:00
parent 9914760949
commit 7bcbfa999c
1 changed files with 4 additions and 6 deletions

View File

@ -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 */