winverbs/winmad: fix GetOverlappedResult return value
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 24 Feb 2009 23:58:21 +0000 (23:58 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 24 Feb 2009 23:58:21 +0000 (23:58 +0000)
commita33442c46b7d4b4641337df1f0094b3595b22c9f
tree4a2a8becfe560b306021696546ca80a8b0f4e91c
parent3d4a888717f8b1e99d681c970180ebee3dd8e962
winverbs/winmad: fix GetOverlappedResult return value

The GetOverlappedResults methods are supposed to return an HRESULT, but are returning a BOOL. This makes GetOverlappedResults return WV_SUCCESS when the underlying ::GetOverlappedResults failed.

This patch returns the NTSTATUS results (not the Win32 conversion thereof) so that the WV_STATUS values are returned (since these map to NTSTATUS values.)

Applied similar fix to winmad.  (-SH)

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1987 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
core/winmad/user/wm_provider.cpp
core/winverbs/user/wv_cq.cpp
core/winverbs/user/wv_device.cpp
core/winverbs/user/wv_ep.cpp
core/winverbs/user/wv_qp.cpp
core/winverbs/user/wv_srq.cpp