mirror of https://github.com/FDOS/kernel.git
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:
parent
9914760949
commit
7bcbfa999c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue