Commit 54697dd3 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Print the strerror instead of just the errno.

parent 0881f204
......@@ -1546,7 +1546,7 @@ static HRESULT DSDB_MapPrimary(IDsDriverBufferImpl *dsdb)
wwo->mapping = mmap(NULL, wwo->maplen, PROT_WRITE, MAP_SHARED,
wwo->unixdev, 0);
if (wwo->mapping == (LPBYTE)-1) {
ERR("(%p): Could not map sound device for direct access (errno=%d)\n", dsdb, errno);
ERR("(%p): Could not map sound device for direct access (%s)\n", dsdb, strerror(errno));
return DSERR_GENERIC;
}
TRACE("(%p): sound device has been mapped for direct access at %p, size=%ld\n", dsdb, wwo->mapping, wwo->maplen);
......
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