forked from Mirrors/wine-wine
Fixed the error message in Wave(In|Out)Init, it used to give a
confusing message, now uses strerror.oldstable
parent
c6670526ad
commit
61402c64de
|
@ -37,6 +37,7 @@
|
||||||
/* #define EXACT_WODPOSITION */
|
/* #define EXACT_WODPOSITION */
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "wine/port.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -524,7 +525,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ERR("%s: not found!\n", ossdev->mixer_name);
|
ERR("%s: %s\n", ossdev->mixer_name , strerror( errno ));
|
||||||
OSS_CloseDevice(ossdev);
|
OSS_CloseDevice(ossdev);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -660,7 +661,7 @@ static BOOL OSS_WaveInInit(OSS_DEVICE* ossdev)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ERR("%s: not found!\n", ossdev->mixer_name);
|
ERR("%s: %s\n", ossdev->mixer_name, strerror(errno));
|
||||||
OSS_CloseDevice(ossdev);
|
OSS_CloseDevice(ossdev);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue