Code cleanup
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user