mirror of https://github.com/axmolengine/axmol.git
use error macro to replace constant value 1410L (#18264)
This commit is contained in:
parent
80c9292969
commit
edd81d3528
|
@ -39,7 +39,7 @@ MciPlayer::MciPlayer()
|
||||||
wc.lpszClassName = _T(WIN_CLASS_NAME); // Set The Class Name
|
wc.lpszClassName = _T(WIN_CLASS_NAME); // Set The Class Name
|
||||||
|
|
||||||
if (! RegisterClass(&wc)
|
if (! RegisterClass(&wc)
|
||||||
&& 1410 != GetLastError())
|
&& ERROR_CLASS_ALREADY_EXISTS != GetLastError())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue