mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-08 13:56:13 +01:00
Cleaned up /analyze warnings with VS 2015 Update 2
This commit is contained in:
@@ -3010,7 +3010,7 @@ DWORD _GetConvertFlags( DXGI_FORMAT format )
|
||||
|
||||
ConvertData key = { format, 0 };
|
||||
const ConvertData* in = (const ConvertData*) bsearch_s( &key, g_ConvertTable, _countof(g_ConvertTable), sizeof(ConvertData),
|
||||
_ConvertCompare, 0 );
|
||||
_ConvertCompare, nullptr );
|
||||
return (in) ? in->flags : 0;
|
||||
}
|
||||
|
||||
@@ -3038,10 +3038,10 @@ void _ConvertScanline( XMVECTOR* pBuffer, size_t count, DXGI_FORMAT outFormat, D
|
||||
// Determine conversion details about source and dest formats
|
||||
ConvertData key = { inFormat, 0 };
|
||||
const ConvertData* in = (const ConvertData*) bsearch_s( &key, g_ConvertTable, _countof(g_ConvertTable), sizeof(ConvertData),
|
||||
_ConvertCompare, 0 );
|
||||
_ConvertCompare, nullptr );
|
||||
key.format = outFormat;
|
||||
const ConvertData* out = (const ConvertData*) bsearch_s( &key, g_ConvertTable, _countof(g_ConvertTable), sizeof(ConvertData),
|
||||
_ConvertCompare, 0 );
|
||||
_ConvertCompare, nullptr );
|
||||
if ( !in || !out )
|
||||
{
|
||||
assert(false);
|
||||
|
||||
@@ -58,7 +58,7 @@ using Microsoft::WRL::ComPtr;
|
||||
|
||||
#else
|
||||
|
||||
#pragma prefast(suppress:28196, "a simple wrapper around an existing annotated function" );
|
||||
#pragma prefast(suppress:6387 28196, "a simple wrapper around an existing annotated function" );
|
||||
static inline HRESULT CreateMemoryStream( _Outptr_ IStream** stream )
|
||||
{
|
||||
return CreateStreamOnHGlobal( 0, TRUE, stream );
|
||||
|
||||
Reference in New Issue
Block a user