[2/5] d3dx9: Implement D3DXSaveSurfaceToFileInMemory.
Vincent Povirk
madewokherd at gmail.com
Mon May 28 07:38:31 CDT 2012
> - hr = IWICImagingFactory_CreateStream(factory, &stream);
> + hr = IWICImagingFactory_CreateStream(factory, &wic_stream);
> IWICImagingFactory_Release(factory);
> if (FAILED(hr)) goto cleanup_err;
>
> - hr = IWICStream_InitializeFromFilename(stream, dst_filename, GENERIC_WRITE);
> + hr = CreateStreamOnHGlobal(NULL, TRUE, &stream);
> if (FAILED(hr)) goto cleanup_err;
>
> + hr = IWICStream_InitializeFromIStream(wic_stream, stream);
Why bother creating an IWICStream here? Just use your HGLOBAL stream
to initialize the encoder.
More information about the wine-devel
mailing list