Fixed error messages.

This commit is contained in:
Andreas Mohr 1999-01-30 15:52:50 +00:00 committed by Alexandre Julliard
parent 3747221dfa
commit cb1f2c43f2
2 changed files with 4 additions and 4 deletions

View file

@ -341,7 +341,7 @@ static DWORD wodWrite(WORD wDevID, LPWAVEHDR lpWaveHdr, DWORD dwSize)
count = write (WOutDev[wDevID].unixdev, lpData, lpWaveHdr->dwBufferLength);
TRACE(wave,"write returned count %u !\n",count);
if (count != lpWaveHdr->dwBufferLength) {
WARN(wave, " error writting !\n");
WARN(wave, " error writing !\n");
return MMSYSERR_NOTENABLED;
}
WOutDev[wDevID].dwTotalPlayed += count;

View file

@ -2099,12 +2099,12 @@ HRESULT WINAPI DirectSoundCreate(LPGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pUn
audiofd = open("/dev/audio",O_WRONLY);
if (audiofd == -1) {
if (errno == ENODEV) {
TRACE(dsound, "No sound hardware\n");
MSG("No sound hardware found.\n");
return DSERR_NODRIVER;
} else if (errno == EBUSY) {
TRACE(dsound, "Sound device busy, will keep trying\n");
MSG("Sound device busy, will keep trying.\n");
} else {
TRACE(dsound, "Unexpected error while checking for sound support\n");
MSG("Unexpected error while checking for sound support.\n");
return DSERR_GENERIC;
}
} else {