int21.c GET SYSTEM TIME

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good day!

According to the behavior of a little clock.exe MZ executable I have
(from WFW 3.11, I think) and also according to the intrlist/interrup.c
from the floppy in the back of an old Undocumented DOS book, we had the
hour and minute reversed.  This fixes it.

Regards,

Lawson

Change log:
	* dlls/winedos/int21.c:
	Lawson Whitney <whitnl73@juno.com>
	Fix reversed hour and minute in int 21 ah=2c.

diff -urN was/dlls/winedos/int21.c is/dlls/winedos/int21.c
--- was/dlls/winedos/int21.c	Tue Jan  7 12:52:01 2003
+++ is/dlls/winedos/int21.c	Wed Jan 15 22:05:53 2003
@@ -795,8 +795,8 @@
         {
             SYSTEMTIME systime;
             GetLocalTime( &systime );
-            SET_CL( context, systime.wHour );
-            SET_CH( context, systime.wMinute );
+            SET_CH( context, systime.wHour );
+            SET_CL( context, systime.wMinute );
             SET_DH( context, systime.wSecond );
             SET_DL( context, systime.wMilliseconds / 10 );
         }

-- 
---oops---



________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux