Fixed -Wnarrowing failure when building with MinGW GNU 12.2

This commit is contained in:
walbourn 2022-10-24 17:38:16 -07:00
Родитель b5ba81bcbc
Коммит f9ef692ded
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -46,11 +46,11 @@
//--------------------------------------------------------------------------------------
#define CHK_ERR(hrchk, strOut) \
case hrchk: \
case static_cast<HRESULT>(hrchk): \
return L##strOut;
#define CHK_ERRA(hrchk) \
case hrchk: \
case static_cast<HRESULT>(hrchk): \
return L## #hrchk;
#define HRESULT_FROM_WIN32b(x) ((HRESULT)(x) <= 0 ? ((HRESULT)(x)) : ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000)))
@ -3284,11 +3284,11 @@ const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr )
#undef CHK_ERR_WIN32_ONLY
#define CHK_ERRA(hrchk) \
case hrchk: \
case static_cast<HRESULT>(hrchk): \
wcscpy_s( desc, count, L## #hrchk ); break;
#define CHK_ERR(hrchk, strOut) \
case hrchk: \
case static_cast<HRESULT>(hrchk): \
wcscpy_s( desc, count, L##strOut ); break;