Commit 61402c64 authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

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

confusing message, now uses strerror.
parent c6670526
......@@ -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;
}
......
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