From: Ulrich Czekalla Date: Mon, 6 Dec 2004 16:18:22 +0000 (+0000) Subject: Set the out buffer count to zero on read error. X-Git-Tag: wine-20050111~459 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=63d757f04473df8b532dad9c913f7997d26a060a;p=wine%2Feterwine.git Set the out buffer count to zero on read error. --- diff --git a/dlls/msi/record.c b/dlls/msi/record.c index 84a363e21d..a9a32adcee 100644 --- a/dlls/msi/record.c +++ b/dlls/msi/record.c @@ -534,7 +534,10 @@ UINT MSI_RecordReadStream(MSIRECORD *rec, unsigned int iField, char *buf, DWORD count = 0; r = IStream_Read( stm, buf, *sz, &count ); if( FAILED( r ) ) + { + *sz = 0; return ERROR_FUNCTION_FAILED; + } *sz = count;