[PATCH 2/4] mfplat: Implement MFCreateFile().

Jactry Zeng jzeng at codeweavers.com
Thu Jan 31 01:14:24 CST 2019


On 2019/1/30 下午10:45, Jactry Zeng wrote:
> -    IStream *stream;
> +    union
> +    {
> +        IStream *stream;
> +        HANDLE file;
> +    } u;
>  } mfbytestream;

Please ignore this series at first.

I tried to implement it(both IStream-based and file-based) with IStream and SHCreateStreamOnFileW() before I submitted these. But I found that it is impossible to handle MF_OPENMODE_RESET_IF_EXIST in that way. So I used CreateFileW for file-based IMFByteStream in this series.

Today I found that it may be a bug of Wine's IStream implementation. So it's still hopeful to make thing more simple by using IStream directly. Will have more tests of IStream.

Sorry for spam!
Any comment will be appreciative.




More information about the wine-devel mailing list