Use memset to be consistent with the rest

This commit is contained in:
Christian Semmler 2023-10-16 09:27:23 -04:00
parent 000c019a0e
commit 50b9a39b2f
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C

View file

@ -357,7 +357,7 @@ void MxTransitionManager::Transition_Windows()
} }
DDSURFACEDESC ddsd; DDSURFACEDESC ddsd;
ZeroMemory(&ddsd, sizeof(ddsd)); memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd); ddsd.dwSize = sizeof(ddsd);
HRESULT res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL); HRESULT res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
@ -402,7 +402,7 @@ void MxTransitionManager::Transition_Broken()
// the game just hangs forever. // the game just hangs forever.
DDSURFACEDESC ddsd; DDSURFACEDESC ddsd;
ZeroMemory(&ddsd, sizeof(ddsd)); memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd); ddsd.dwSize = sizeof(ddsd);
HRESULT res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL); HRESULT res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);