Commit 63d757f0 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Set the out buffer count to zero on read error.

parent 6b395bab
...@@ -534,7 +534,10 @@ UINT MSI_RecordReadStream(MSIRECORD *rec, unsigned int iField, char *buf, DWORD ...@@ -534,7 +534,10 @@ UINT MSI_RecordReadStream(MSIRECORD *rec, unsigned int iField, char *buf, DWORD
count = 0; count = 0;
r = IStream_Read( stm, buf, *sz, &count ); r = IStream_Read( stm, buf, *sz, &count );
if( FAILED( r ) ) if( FAILED( r ) )
{
*sz = 0;
return ERROR_FUNCTION_FAILED; return ERROR_FUNCTION_FAILED;
}
*sz = count; *sz = count;
......
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