crypt32: Increment current pointer on successful reads from memory.

This commit is contained in:
Juan Lang 2010-06-15 11:53:22 -07:00 committed by Alexandre Julliard
parent 02b9e3198a
commit 06a3cea1cd
1 changed files with 6 additions and 0 deletions

View File

@ -562,6 +562,12 @@ static BOOL read_blob_wrapper(void *handle, void *buffer, DWORD bytesToRead,
{
*bytesRead = min(bytesToRead, reader->blob->cbData - reader->current);
memcpy(buffer, reader->blob->pbData + reader->current, *bytesRead);
reader->current += *bytesRead;
ret = TRUE;
}
else if (reader->current == reader->blob->cbData)
{
*bytesRead = 0;
ret = TRUE;
}
else