From 0580b2870c46faba0252f5c914c53b1b6cacb765 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 14 Oct 2023 15:31:30 -0400 Subject: [PATCH] Use MxResult for RealizePalette --- LEGO1/mxvideomanager.cpp | 4 ++-- LEGO1/mxvideomanager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxvideomanager.cpp b/LEGO1/mxvideomanager.cpp index 5c45f00d..73867e93 100644 --- a/LEGO1/mxvideomanager.cpp +++ b/LEGO1/mxvideomanager.cpp @@ -139,7 +139,7 @@ void MxVideoManager::InvalidateRect(MxRect32 &p_rect) } // OFFSET: LEGO1 0x100bebe0 -MxLong MxVideoManager::RealizePalette(MxPalette *p_palette) +MxResult MxVideoManager::RealizePalette(MxPalette *p_palette) { PALETTEENTRY paletteEntries[256]; @@ -152,7 +152,7 @@ MxLong MxVideoManager::RealizePalette(MxPalette *p_palette) } this->m_criticalSection.Leave(); - return 0; + return SUCCESS; } // OFFSET: LEGO1 0x100be600 diff --git a/LEGO1/mxvideomanager.h b/LEGO1/mxvideomanager.h index 6e0e6b76..3cf815bb 100644 --- a/LEGO1/mxvideomanager.h +++ b/LEGO1/mxvideomanager.h @@ -28,7 +28,7 @@ class MxVideoManager : public MxMediaManager virtual MxResult Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS, MxBool p_createThread); // vtable+0x2c __declspec(dllexport) void InvalidateRect(MxRect32 &); - __declspec(dllexport) virtual MxLong RealizePalette(MxPalette *); // vtable+0x30 + __declspec(dllexport) virtual MxResult RealizePalette(MxPalette *); // vtable+0x30 MxVideoManager();