cleanup: fix all improper uses of MxResult (#234)

* cleanup: fix all improper uses of MxResult
This commit is contained in:
Ramen2X
2023-10-22 13:38:25 -04:00
committed by GitHub
parent 7e907cfe3f
commit 5ab993bfda
6 changed files with 7 additions and 7 deletions

View File

@@ -379,7 +379,7 @@ void MxPalette::Detach()
MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries)
{
MxS32 i;
MxResult status = 0;
MxResult status = SUCCESS;
if ( this->m_palette )
{
@@ -423,7 +423,7 @@ MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries)
this->m_entries[i].peFlags = 0x80;
if ( this->m_palette->SetEntries(0, 0, 256, this->m_entries) )
status = -1;
status = FAILURE;
}
return status;