mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-06 21:26:12 +01:00
Add GitHub Action for super-lint (#618)
This commit is contained in:
@@ -334,11 +334,11 @@ HRESULT DirectX::GetMetadataFromPNGFile(
|
||||
}
|
||||
catch (const std::system_error& ec)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifdef _WIN32
|
||||
return HRESULT_FROM_WIN32(static_cast<unsigned long>(ec.code().value()));
|
||||
#else
|
||||
#else
|
||||
return (ec.code().value() == ENOENT) ? HRESULT_ERROR_FILE_NOT_FOUND : E_FAIL;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
catch (const std::invalid_argument&)
|
||||
{
|
||||
@@ -379,11 +379,11 @@ HRESULT DirectX::LoadFromPNGFile(
|
||||
catch (const std::system_error& ec)
|
||||
{
|
||||
image.Release();
|
||||
#ifdef _WIN32
|
||||
#ifdef _WIN32
|
||||
return HRESULT_FROM_WIN32(static_cast<unsigned long>(ec.code().value()));
|
||||
#else
|
||||
#else
|
||||
return (ec.code().value() == ENOENT) ? HRESULT_ERROR_FILE_NOT_FOUND : E_FAIL;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
catch (const std::invalid_argument&)
|
||||
{
|
||||
@@ -417,11 +417,11 @@ HRESULT DirectX::SaveToPNGFile(
|
||||
}
|
||||
catch (const std::system_error& ec)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifdef _WIN32
|
||||
return HRESULT_FROM_WIN32(static_cast<unsigned long>(ec.code().value()));
|
||||
#else
|
||||
#else
|
||||
return (ec.code().value() == ENOENT) ? HRESULT_ERROR_FILE_NOT_FOUND : E_FAIL;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
catch (const std::exception&)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user