Dmitry Timoshkov : crypt32: Check number of bytes returned by ReadFile and avoid a memory leak on error path .