wineoss.drv: Print strerror of errno, not of -1 (Coverity).
This commit is contained in:
parent
9ac18eabb9
commit
2de37f0214
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue