From a9a6d00be5d75cd444ab5396e8cab8ad75c39a1a Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Sun, 6 Jun 1999 14:30:08 +0000
Subject: [PATCH] ASPI_ExecScsiCmd: better return value and verbose error when
 no device found.

---
 dlls/wnaspi32/winaspi32.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/wnaspi32/winaspi32.c b/dlls/wnaspi32/winaspi32.c
index d2e870b83b1..75db2388478 100644
--- a/dlls/wnaspi32/winaspi32.c
+++ b/dlls/wnaspi32/winaspi32.c
@@ -180,9 +180,10 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
 
   fd = ASPI_OpenDevice(lpPRB);
   if (fd == -1) {
-      ERR(aspi, "Failed: could not open device. Device permissions !?\n");
-      lpPRB->SRB_Status = SS_ERR;
-      return SS_ERR;
+      ERR(aspi, "Failed: could not open device c%01dt%01dd%01d. Device permissions !?\n",
+	  lpPRB->SRB_HaId,lpPRB->SRB_Target,lpPRB->SRB_Lun);
+      lpPRB->SRB_Status = SS_NO_DEVICE;
+      return SS_NO_DEVICE;
   }
 
   sg_hd = NULL;
-- 
GitLab