1
0
mirror of https://github.com/microsoft/DirectXTex synced 2025-01-09 01:10:14 +00:00

DirectXTex: Code Review feedback

This commit is contained in:
walbourn_cp 2013-07-09 16:16:38 -07:00
parent 4c1a8527c1
commit 51af8e4af5
3 changed files with 5 additions and 5 deletions

View File

@ -178,7 +178,7 @@ HRESULT _ResizeSeparateColorAndAlpha( _In_ IWICImagingFactory* pWIC, _In_ IWICBi
ScopedObject<IWICPixelFormatInfo> pixelFormatInfo;
if ( SUCCEEDED(hr) )
{
hr = componentInfo->QueryInterface( __uuidof(IWICPixelFormatInfo), (void**)&pixelFormatInfo );
hr = componentInfo->QueryInterface( IID_PPV_ARGS( &pixelFormatInfo ) );
}
UINT bitsPerPixel = 0;
@ -474,7 +474,7 @@ static HRESULT _GenerateMipMapsUsingWIC( _In_ const Image& baseImage, _In_ DWORD
return hr;
ScopedObject<IWICPixelFormatInfo2> pixelFormatInfo;
hr = componentInfo->QueryInterface( __uuidof(IWICPixelFormatInfo2), (void**)&pixelFormatInfo );
hr = componentInfo->QueryInterface( IID_PPV_ARGS( &pixelFormatInfo ) );
if ( FAILED(hr) )
return hr;

View File

@ -46,7 +46,7 @@ static HRESULT _PerformResizeUsingWIC( _In_ const Image& srcImage, _In_ DWORD fi
return hr;
ScopedObject<IWICPixelFormatInfo2> pixelFormatInfo;
hr = componentInfo->QueryInterface( __uuidof(IWICPixelFormatInfo2), (void**)&pixelFormatInfo );
hr = componentInfo->QueryInterface( IID_PPV_ARGS( &pixelFormatInfo ) );
if ( FAILED(hr) )
return hr;

View File

@ -29,7 +29,7 @@
static inline HRESULT CreateMemoryStream( _Outptr_ IStream** stream )
{
auto randomAccessStream = ref new ::Windows::Storage::Streams::InMemoryRandomAccessStream();
return CreateStreamOverRandomAccessStream( randomAccessStream, __uuidof(IStream), reinterpret_cast<void **>( &stream ) );
return CreateStreamOverRandomAccessStream( randomAccessStream, IID_PPV_ARGS( stream ) );
}
#else
@ -47,7 +47,7 @@
if (SUCCEEDED(hr))
{
hr = CreateStreamOverRandomAccessStream( abiStream.Get(), __uuidof(IStream), reinterpret_cast<void **>( &stream ) );
hr = CreateStreamOverRandomAccessStream( abiStream.Get(), IID_PPV_ARGS( stream ) );
}
return hr;
}