diff --git a/dlls/wnaspi32/aspi.c b/dlls/wnaspi32/aspi.c index c4bc1bbd396..07f6bf63937 100644 --- a/dlls/wnaspi32/aspi.c +++ b/dlls/wnaspi32/aspi.c @@ -237,6 +237,10 @@ int SCSI_OpenDevice( int h, int c, int t, int d ) TRACE("Opening device %s mode O_RDWR\n",devstr); fd = open(devstr, O_RDWR); + if (fd == -1) { + char *errstring = strerror(errno); + ERR("Failed to open device %s: %s\n", devstr, errstring); + } return fd; }