Clear unknown in MxVideoManager (#1721)

This commit is contained in:
Fabian Neundorf 2026-01-15 00:50:49 +01:00 committed by GitHub
parent 197ae3ee10
commit d26acdfae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class MxVideoManager : public MxPresentationManager {
LPDIRECT3D2 m_pDirect3D; // 0x54
MxDisplaySurface* m_displaySurface; // 0x58
MxRegion* m_region; // 0x5c
MxBool m_unk0x60; // 0x60
MxBool m_created; // 0x60
};
#endif // MXVIDEOMANAGER_H

View File

@ -41,7 +41,7 @@ MxResult MxVideoManager::Init()
m_displaySurface = NULL;
m_region = NULL;
m_videoParam.SetPalette(NULL);
m_unk0x60 = FALSE;
m_created = FALSE;
return SUCCESS;
}
@ -71,7 +71,7 @@ void MxVideoManager::Destroy(MxBool p_fromDestructor)
delete m_videoParam.GetPalette();
}
if (m_unk0x60) {
if (m_created) {
if (m_pDirectDraw) {
m_pDirectDraw->Release();
}
@ -152,7 +152,7 @@ MxResult MxVideoManager::VTable0x28(
MxBool locked = FALSE;
MxResult status = FAILURE;
m_unk0x60 = FALSE;
m_created = FALSE;
if (MxPresentationManager::Create() != SUCCESS) {
goto done;
@ -226,7 +226,7 @@ MxResult MxVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS,
MxBool locked = FALSE;
MxResult status = FAILURE;
m_unk0x60 = TRUE;
m_created = TRUE;
if (MxPresentationManager::Create() != SUCCESS) {
goto done;