Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Autorun 
Author Message
yozhik



PostPosted: Tue Oct 06, 2026 00:23    Post subject: Reply with quote

БАГ
Для Loopback, когда он back.
Buffer.SetNum с типом ptr на x64 обрезает значение до 32 бит. 64-битная SetNum("ptr") теряет старшие 32 бита. Тест:

Code:
If AUTORUN_TCARCH = 64 Then
    Local tst = Buffer(8)
    tst.Zero()
    tst.SetNum(0, "ptr", 0xABCD12345678)
    Local nHi = tst.GetNum(4, "dword")
    MsgBox("SetNum(ptr) high dword=" & nHi & _
           "  (43981=OK, 0=обрезает до 32 бит)", "test")
    Free(tst)
EndIf

_________________
Amo ergo sum
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group