winverbs: return STATUS_SUCCESS when reporting a successful disconnect
[mirror/winof/.git] / core / winverbs / kernel / wv_ep.c
index 6b28848..fa7942d 100644 (file)
@@ -407,13 +407,13 @@ static NTSTATUS WvEpIbCmHandler(iba_cm_id *pId, iba_cm_event *pEvent)
                        ep->State = WvEpDisconnected;\r
                        IbCmInterface.CM.send_drep(pId, NULL, 0);\r
                }\r
-               WvCompleteRequests(ep->Queue, STATUS_CONNECTION_DISCONNECTED);\r
+               WvCompleteRequests(ep->Queue, STATUS_SUCCESS);\r
                WdfObjectReleaseLock(ep->Queue);\r
                break;\r
        case iba_cm_drep_received:\r
                WdfObjectAcquireLock(ep->Queue);\r
                ep->State = WvEpDisconnected;\r
-               WvCompleteRequests(ep->Queue, STATUS_CONNECTION_DISCONNECTED);\r
+               WvCompleteRequests(ep->Queue, STATUS_SUCCESS);\r
                WdfObjectReleaseLock(ep->Queue);\r
                break;\r
        case iba_cm_rej_received:\r
@@ -834,7 +834,7 @@ void WvEpDisconnectNotify(WV_PROVIDER *pProvider, WDFREQUEST Request)
                break;\r
        case WvEpPassiveDisconnect:\r
        case WvEpDisconnected:\r
-               status = STATUS_CONNECTION_DISCONNECTED;\r
+               status = STATUS_SUCCESS;\r
                break;\r
        default:\r
                status = STATUS_NOT_SUPPORTED;\r