scrrun: Implement ITextStream Close

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Jun 16 04:40:51 CDT 2015


On 16/06/15 19:25, Nikolay Sivov wrote:
>>      struct textstream *This = impl_from_ITextStream(iface);
>> -    FIXME("(%p): stub\n", This);
>> -    return E_NOTIMPL;
>> +    HRESULT hr = S_OK;
>> +
>> +    TRACE("(%p)\n", This);
>> +
>> +    if(!CloseHandle(This->file))
>> +        hr = S_FALSE;
>> +
>> +    This->file = NULL;
>> +
>> +    return hr;
>
> This could be right way to do it, but it would be interesting to see
> what happens to other methods behavior when called on closed stream,
> like Read() for example.

I would expect them to fail in some way.
Another patch with more tests.

Best Regards
  Alistair Leslie-Hughes



More information about the wine-devel mailing list