Commit cb1f2c43 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Fixed error messages.

parent 3747221d
...@@ -341,7 +341,7 @@ static DWORD wodWrite(WORD wDevID, LPWAVEHDR lpWaveHdr, DWORD dwSize) ...@@ -341,7 +341,7 @@ static DWORD wodWrite(WORD wDevID, LPWAVEHDR lpWaveHdr, DWORD dwSize)
count = write (WOutDev[wDevID].unixdev, lpData, lpWaveHdr->dwBufferLength); count = write (WOutDev[wDevID].unixdev, lpData, lpWaveHdr->dwBufferLength);
TRACE(wave,"write returned count %u !\n",count); TRACE(wave,"write returned count %u !\n",count);
if (count != lpWaveHdr->dwBufferLength) { if (count != lpWaveHdr->dwBufferLength) {
WARN(wave, " error writting !\n"); WARN(wave, " error writing !\n");
return MMSYSERR_NOTENABLED; return MMSYSERR_NOTENABLED;
} }
WOutDev[wDevID].dwTotalPlayed += count; WOutDev[wDevID].dwTotalPlayed += count;
......
...@@ -2099,12 +2099,12 @@ HRESULT WINAPI DirectSoundCreate(LPGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pUn ...@@ -2099,12 +2099,12 @@ HRESULT WINAPI DirectSoundCreate(LPGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pUn
audiofd = open("/dev/audio",O_WRONLY); audiofd = open("/dev/audio",O_WRONLY);
if (audiofd == -1) { if (audiofd == -1) {
if (errno == ENODEV) { if (errno == ENODEV) {
TRACE(dsound, "No sound hardware\n"); MSG("No sound hardware found.\n");
return DSERR_NODRIVER; return DSERR_NODRIVER;
} else if (errno == EBUSY) { } else if (errno == EBUSY) {
TRACE(dsound, "Sound device busy, will keep trying\n"); MSG("Sound device busy, will keep trying.\n");
} else { } else {
TRACE(dsound, "Unexpected error while checking for sound support\n"); MSG("Unexpected error while checking for sound support.\n");
return DSERR_GENERIC; return DSERR_GENERIC;
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment