Sync to Wine-0_9_5:
authorGé van Geldorp <ge@gse.nl>
Fri, 6 Jan 2006 20:19:21 +0000 (20:19 +0000)
committerGé van Geldorp <ge@gse.nl>
Fri, 6 Jan 2006 20:19:21 +0000 (20:19 +0000)
commit87fbcaec39293956992ce4b1d2146346cfd2ae1b
tree54e977765f8cd205fe2d972ae916bdf343e83092
parentc5c567402917b893a75341afe648eec7288398e6
Sync to Wine-0_9_5:
Robert Shearman <rob@codeweavers.com>
- ole: Fix mis-handling of return value in StgStreamImpl_Read.
  BlockChainStream_ReadAt returns a BOOL, not an HRESULT so change
  StgStreamImpl_Read to handle this, by returning STG_E_READFAULT on
  failure.
- ole: Check the return value of IStream_SetSize in IStream_Read.
  Check the return value of IStream_SetSize in IStream_Read, since
  otherwise execution could continue on and cause heap corruption.

svn path=/trunk/; revision=20621
reactos/lib/ole32/hglobalstream.c
reactos/lib/ole32/stg_stream.c