Changeset 42433 in vbox
- Timestamp:
- Jul 27, 2012 11:30:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/UsbCardReader.cpp
r42428 r42433 774 774 case VRDE_SCARD_FN_ESTABLISHCONTEXT: 775 775 { 776 Assert(cbData == sizeof(VRDESCARDESTABLISHCONTEXTRSP) );776 Assert(cbData == sizeof(VRDESCARDESTABLISHCONTEXTRSP) || RT_FAILURE(rcRequest)); 777 777 VRDESCARDESTABLISHCONTEXTRSP *pRsp = (VRDESCARDESTABLISHCONTEXTRSP *)pvData; 778 778 UCRREMOTE *pRemote = (UCRREMOTE *)pvUser; … … 798 798 case VRDE_SCARD_FN_LISTREADERS: 799 799 { 800 Assert(cbData == sizeof(VRDESCARDLISTREADERSRSP) );800 Assert(cbData == sizeof(VRDESCARDLISTREADERSRSP) || RT_FAILURE(rcRequest)); 801 801 VRDESCARDLISTREADERSRSP *pRsp = (VRDESCARDLISTREADERSRSP *)pvData; 802 802 UCRREMOTE *pRemote = (UCRREMOTE *)pvUser; … … 831 831 case VRDE_SCARD_FN_RELEASECONTEXT: 832 832 { 833 Assert(cbData == sizeof(VRDESCARDRELEASECONTEXTRSP) );833 Assert(cbData == sizeof(VRDESCARDRELEASECONTEXTRSP) || RT_FAILURE(rcRequest)); 834 834 VRDESCARDRELEASECONTEXTRSP *pRsp = (VRDESCARDRELEASECONTEXTRSP *)pvData; 835 835 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 845 845 case VRDE_SCARD_FN_GETSTATUSCHANGE: 846 846 { 847 Assert(cbData == sizeof(VRDESCARDGETSTATUSCHANGERSP) );847 Assert(cbData == sizeof(VRDESCARDGETSTATUSCHANGERSP) || RT_FAILURE(rcRequest)); 848 848 VRDESCARDGETSTATUSCHANGERSP *pRsp = (VRDESCARDGETSTATUSCHANGERSP *)pvData; 849 849 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 854 854 855 855 uint32_t rcCard; 856 if (RT_FAILURE(rc ))856 if (RT_FAILURE(rcRequest)) 857 857 { 858 858 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 903 903 case VRDE_SCARD_FN_CANCEL: 904 904 { 905 Assert(cbData == sizeof(VRDESCARDCANCELRSP) );905 Assert(cbData == sizeof(VRDESCARDCANCELRSP) || RT_FAILURE(rcRequest)); 906 906 VRDESCARDCANCELRSP *pRsp = (VRDESCARDCANCELRSP *)pvData; 907 907 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 914 914 case VRDE_SCARD_FN_CONNECT: 915 915 { 916 Assert(cbData == sizeof(VRDESCARDCONNECTRSP) );916 Assert(cbData == sizeof(VRDESCARDCONNECTRSP) || RT_FAILURE(rcRequest)); 917 917 VRDESCARDCONNECTRSP *pRsp = (VRDESCARDCONNECTRSP *)pvData; 918 918 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 925 925 uint32_t rcCard; 926 926 927 if (RT_FAILURE(rc ))927 if (RT_FAILURE(rcRequest)) 928 928 { 929 929 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 953 953 case VRDE_SCARD_FN_RECONNECT: 954 954 { 955 Assert(cbData == sizeof(VRDESCARDRECONNECTRSP) );955 Assert(cbData == sizeof(VRDESCARDRECONNECTRSP) || RT_FAILURE(rcRequest)); 956 956 VRDESCARDRECONNECTRSP *pRsp = (VRDESCARDRECONNECTRSP *)pvData; 957 957 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 964 964 case VRDE_SCARD_FN_DISCONNECT: 965 965 { 966 Assert(cbData == sizeof(VRDESCARDDISCONNECTRSP) );966 Assert(cbData == sizeof(VRDESCARDDISCONNECTRSP) || RT_FAILURE(rcRequest)); 967 967 VRDESCARDDISCONNECTRSP *pRsp = (VRDESCARDDISCONNECTRSP *)pvData; 968 968 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 976 976 uint32_t rcCard; 977 977 978 if (RT_FAILURE(rc ))978 if (RT_FAILURE(rcRequest)) 979 979 { 980 980 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 994 994 case VRDE_SCARD_FN_BEGINTRANSACTION: 995 995 { 996 Assert(cbData == sizeof(VRDESCARDBEGINTRANSACTIONRSP) );996 Assert(cbData == sizeof(VRDESCARDBEGINTRANSACTIONRSP) || RT_FAILURE(rcRequest)); 997 997 VRDESCARDBEGINTRANSACTIONRSP *pRsp = (VRDESCARDBEGINTRANSACTIONRSP *)pvData; 998 998 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1005 1005 case VRDE_SCARD_FN_ENDTRANSACTION: 1006 1006 { 1007 Assert(cbData == sizeof(VRDESCARDENDTRANSACTIONRSP) );1007 Assert(cbData == sizeof(VRDESCARDENDTRANSACTIONRSP) || RT_FAILURE(rcRequest)); 1008 1008 VRDESCARDENDTRANSACTIONRSP *pRsp = (VRDESCARDENDTRANSACTIONRSP *)pvData; 1009 1009 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1016 1016 case VRDE_SCARD_FN_STATE: 1017 1017 { 1018 Assert(cbData == sizeof(VRDESCARDSTATERSP) );1018 Assert(cbData == sizeof(VRDESCARDSTATERSP) || RT_FAILURE(rcRequest)); 1019 1019 VRDESCARDSTATERSP *pRsp = (VRDESCARDSTATERSP *)pvData; 1020 1020 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1027 1027 case VRDE_SCARD_FN_STATUS: 1028 1028 { 1029 Assert(cbData == sizeof(VRDESCARDSTATUSRSP) );1029 Assert(cbData == sizeof(VRDESCARDSTATUSRSP) || RT_FAILURE(rcRequest)); 1030 1030 VRDESCARDSTATUSRSP *pRsp = (VRDESCARDSTATUSRSP *)pvData; 1031 1031 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1044 1044 uint32_t rcCard; 1045 1045 1046 if (RT_FAILURE(rc ))1046 if (RT_FAILURE(rcRequest)) 1047 1047 { 1048 1048 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 1078 1078 case VRDE_SCARD_FN_TRANSMIT: 1079 1079 { 1080 Assert(cbData == sizeof(VRDESCARDTRANSMITRSP) );1080 Assert(cbData == sizeof(VRDESCARDTRANSMITRSP) || RT_FAILURE(rcRequest)); 1081 1081 VRDESCARDTRANSMITRSP *pRsp = (VRDESCARDTRANSMITRSP *)pvData; 1082 1082 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1092 1092 uint32_t rcCard; 1093 1093 1094 if (RT_FAILURE(rc ))1094 if (RT_FAILURE(rcRequest)) 1095 1095 { 1096 1096 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 1122 1122 case VRDE_SCARD_FN_CONTROL: 1123 1123 { 1124 Assert(cbData == sizeof(VRDESCARDCONTROLRSP) );1124 Assert(cbData == sizeof(VRDESCARDCONTROLRSP) || RT_FAILURE(rcRequest)); 1125 1125 VRDESCARDCONTROLRSP *pRsp = (VRDESCARDCONTROLRSP *)pvData; 1126 1126 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1135 1135 uint32_t rcCard; 1136 1136 1137 if (RT_FAILURE(rc ))1137 if (RT_FAILURE(rcRequest)) 1138 1138 { 1139 1139 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 1162 1162 case VRDE_SCARD_FN_GETATTRIB: 1163 1163 { 1164 Assert(cbData == sizeof(VRDESCARDGETATTRIBRSP) );1164 Assert(cbData == sizeof(VRDESCARDGETATTRIBRSP) || RT_FAILURE(rcRequest)); 1165 1165 VRDESCARDGETATTRIBRSP *pRsp = (VRDESCARDGETATTRIBRSP *)pvData; 1166 1166 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1175 1175 uint32_t rcCard; 1176 1176 1177 if (RT_FAILURE(rc ))1177 if (RT_FAILURE(rcRequest)) 1178 1178 { 1179 1179 rcCard = VRDE_SCARD_E_NO_SMARTCARD; … … 1202 1202 case VRDE_SCARD_FN_SETATTRIB: 1203 1203 { 1204 Assert(cbData == sizeof(VRDESCARDSETATTRIBRSP) );1204 Assert(cbData == sizeof(VRDESCARDSETATTRIBRSP) || RT_FAILURE(rcRequest)); 1205 1205 VRDESCARDSETATTRIBRSP *pRsp = (VRDESCARDSETATTRIBRSP *)pvData; 1206 1206 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; … … 1212 1212 uint32_t rcCard; 1213 1213 1214 if (RT_FAILURE(rc ))1214 if (RT_FAILURE(rcRequest)) 1215 1215 { 1216 1216 rcCard = VRDE_SCARD_E_NO_SMARTCARD;
Note:
See TracChangeset
for help on using the changeset viewer.