Codechange: Use null pointer literal instead of the NULL macro
This commit is contained in:

committed by
Michael Lutz

parent
3b4f224c0b
commit
7c8e7c6b6e
@@ -45,7 +45,7 @@ static long CDECL MidiSendCommand(const char *cmd, ...)
|
||||
va_start(va, cmd);
|
||||
vseprintf(buf, lastof(buf), cmd, va);
|
||||
va_end(va);
|
||||
return mciSendString(buf, NULL, 0, NULL, 0);
|
||||
return mciSendString(buf, nullptr, 0, nullptr, 0);
|
||||
}
|
||||
|
||||
/** OS/2's music player's factory. */
|
||||
@@ -78,7 +78,7 @@ void MusicDriver_OS2::SetVolume(byte vol)
|
||||
bool MusicDriver_OS2::IsSongPlaying()
|
||||
{
|
||||
char buf[16];
|
||||
mciSendString("status song mode", buf, sizeof(buf), NULL, 0);
|
||||
mciSendString("status song mode", buf, sizeof(buf), nullptr, 0);
|
||||
return strcmp(buf, "playing") == 0 || strcmp(buf, "seeking") == 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user