mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-17 21:41:15 +00:00
Replace 256 with sizeof(...)
This commit is contained in:
parent
3c82bfbc5f
commit
2c9f6dc876
@ -250,7 +250,7 @@ void Isle::setupVideoFlags(BOOL fullScreen, BOOL flipSurfaces, BOOL backBuffers,
|
|||||||
BOOL Isle::setupLegoOmni()
|
BOOL Isle::setupLegoOmni()
|
||||||
{
|
{
|
||||||
char mediaPath[256];
|
char mediaPath[256];
|
||||||
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256);
|
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, sizeof(mediaPath));
|
||||||
|
|
||||||
if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
|
if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
|
||||||
VariableTable()->SetVariable("ACTOR_01", "");
|
VariableTable()->SetVariable("ACTOR_01", "");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user