Re: wintrust: Implement CryptCATAdminCalcHashFromFileHandle, try 2
Oct. 21, 2008
10: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
October 2008
12:32 p.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.
6366
Age (days ago)
6366
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
Maarten Lankhorst