Code cleanup

This commit is contained in:
pagefault
2001-08-03 06:17:25 +00:00
parent 20ed0e65bf
commit bdefa45ff7
2 changed files with 23 additions and 23 deletions

View File

@@ -1756,16 +1756,16 @@ EXTSYM SystemTimewMinute
EXTSYM SystemTimewSecond EXTSYM SystemTimewSecond
NEWSYM GetTimeInSeconds NEWSYM GetTimeInSeconds
call GetLocalTime call GetLocalTime
movzx eax,word [SystemTimewHour] movzx eax,word[SystemTimewHour]
mov ebx,60 mov ebx,60
mul ebx mul ebx
movzx ebx,word [SystemTimewMinute] movzx ebx,word[SystemTimewMinute]
add eax,ebx add eax,ebx
mov ebx,60 mov ebx,60
mul ebx mul ebx
movzx ebx,word [SystemTimewSecond] movzx ebx,word[SystemTimewSecond]
add eax,ebx add eax,ebx
ret ret
NEWSYM WinIntRFAsmEnd NEWSYM WinIntRFAsmEnd

View File

@@ -2028,18 +2028,18 @@ NEWSYM GotoHomepage
ret ret
NEWSYM GetTimeInSeconds NEWSYM GetTimeInSeconds
push dword SystemTime push dword SystemTime
call [_imp__GetLocalTime@4] call [_imp__GetLocalTime@4]
movzx eax,word [SystemTime.wHour] movzx eax,word[SystemTime.wHour]
mov ebx,60 mov ebx,60
mul ebx mul ebx
movzx ebx,word [SystemTime.wMinute] movzx ebx,word[SystemTime.wMinute]
add eax,ebx add eax,ebx
mov ebx,60 mov ebx,60
mul ebx mul ebx
movzx ebx,word [SystemTime.wSecond] movzx ebx,word[SystemTime.wSecond]
add eax,ebx add eax,ebx
ret ret
SystemTime: SystemTime:
.wYear dw 0 .wYear dw 0