Commit 06a3cea1 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Increment current pointer on successful reads from memory.

parent 02b9e319
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment