mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-26 07:15:03 +02:00
dos_gettime() fix by Tom Ehlert.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@171 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
7ff9389c6a
commit
6b4bb899c8
@ -36,6 +36,9 @@ BYTE *RcsId = "$Id$";
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log$
|
* $Log$
|
||||||
|
* Revision 1.11 2001/03/22 04:26:14 bartoldeman
|
||||||
|
* dos_gettime() fix by Tom Ehlert.
|
||||||
|
*
|
||||||
* Revision 1.10 2001/03/21 02:56:25 bartoldeman
|
* Revision 1.10 2001/03/21 02:56:25 bartoldeman
|
||||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||||
*
|
*
|
||||||
@ -969,9 +972,7 @@ time dos_gettime()
|
|||||||
(BYTE FAR *) & Minute,
|
(BYTE FAR *) & Minute,
|
||||||
(BYTE FAR *) & Second,
|
(BYTE FAR *) & Second,
|
||||||
(BYTE FAR *) & Hundredth);
|
(BYTE FAR *) & Hundredth);
|
||||||
h = Second * 10 + ((Hundredth + 5) / 10);
|
return TM_ENCODE(Hour, Minute, Second/2);
|
||||||
Time = TM_ENCODE(Hour, Minute, h);
|
|
||||||
return Time;
|
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user