Commit 2de37f02 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wineoss.drv: Print strerror of errno, not of -1 (Coverity).

parent 9ac18eab
......@@ -250,7 +250,7 @@ static UINT get_default_index(EDataFlow flow, char **keys, UINT num)
ai.dev = -1;
if((err = ioctl(fd, SNDCTL_ENGINEINFO, &ai)) < 0){
WARN("SNDCTL_ENGINEINFO failed: %d (%s)\n", err, strerror(err));
WARN("SNDCTL_ENGINEINFO failed: %d (%s)\n", err, strerror(errno));
close(fd);
return 0;
}
......
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