Re: wintrust: Implement CryptCATAdminCalcHashFromFileHandle, try 2
21 Oct
2008
21 Oct
'08
5:12 a.m.
Maarten Lankhorst <m.b.lankhorst(a)gmail.com> writes:
+ curpos.QuadPart = 0; + SetFilePointerEx(hFile, curpos, &oldpos, FILE_CURRENT); + SetFilePointerEx(hFile, curpos, NULL, FILE_BEGIN);
That's not thread-safe. -- Alexandre Julliard julliard(a)winehq.org
21 Oct
21 Oct
7:32 a.m.
New subject: wintrust: Implement CryptCATAdminCalcHashFromFileHandle, try 2
Hi AJ, Alexandre Julliard schreef:
Maarten Lankhorst <m.b.lankhorst(a)gmail.com> writes:
+ curpos.QuadPart = 0; + SetFilePointerEx(hFile, curpos, &oldpos, FILE_CURRENT); + SetFilePointerEx(hFile, curpos, NULL, FILE_BEGIN);
That's not thread-safe.
My bad, I thought overlapped was equal to asynchronous, but it can also be used for synchronous reads it seems, sending a fixed patch. Cheers, Maarten.
6351
Age (days ago)
6351
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
Maarten Lankhorst