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

This commit is contained in:
Marcus Meissner 2011-08-06 13:26:18 +02:00 committed by Alexandre Julliard
parent 9ac18eabb9
commit 2de37f0214
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}