Fixed the error message in Wave(In|Out)Init, it used to give a

confusing message, now uses strerror.
oldstable
Mike Hearn 2003-08-29 22:12:15 +00:00 committed by Alexandre Julliard
parent c6670526ad
commit 61402c64de
1 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@
/* #define EXACT_WODPOSITION */
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <stdio.h>
@ -524,7 +525,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
return FALSE;
}
} else {
ERR("%s: not found!\n", ossdev->mixer_name);
ERR("%s: %s\n", ossdev->mixer_name , strerror( errno ));
OSS_CloseDevice(ossdev);
return FALSE;
}
@ -660,7 +661,7 @@ static BOOL OSS_WaveInInit(OSS_DEVICE* ossdev)
return FALSE;
}
} else {
ERR("%s: not found!\n", ossdev->mixer_name);
ERR("%s: %s\n", ossdev->mixer_name, strerror(errno));
OSS_CloseDevice(ossdev);
return FALSE;
}