use error macro to replace constant value 1410L (#18264)

This commit is contained in:
yycmmc 2017-09-19 10:05:46 +08:00 committed by minggo
parent 80c9292969
commit edd81d3528
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ MciPlayer::MciPlayer()
wc.lpszClassName = _T(WIN_CLASS_NAME); // Set The Class Name
if (! RegisterClass(&wc)
&& 1410 != GetLastError())
&& ERROR_CLASS_ALREADY_EXISTS != GetLastError())
{
return;
}