flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Mike Gonta
Code: invoke SetFilePointer, ebx, eax, [position_high], ecx |
|||
![]() |
|
Tomasz Grysztar
Thank you for spotting this. It shows that I never tested it with really large files.
|
|||
![]() |
|
Mike Gonta
Code: lseek: ; in: ebx = file handle, cl = method, edx:eax = offset ; out: edx:eax = new offset from the beginning of file, cf set on error ; preserves: ebx, esi, edi movzx ecx,cl mov [position_high],edx invoke SetFilePointer,ebx,eax,position_high,ecx cmp eax,-1 je interface_error mov edx,[position_high] clc retn MSDN wrote: If the return value is INVALID_SET_FILE_POINTER and if lpDistanceToMoveHigh is non-NULL, an application must call |
|||
![]() |
|
Tomasz Grysztar
Good catch! Corrected, thank you again.
|
|||
![]() |
|
Tomasz Grysztar
I'm OK with SetFilePointer, it just needed these corrections.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.