convert byteorder debug
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5608 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -142,7 +142,7 @@ ptp_getdata (PTPParams* params, PTPReq* req, uint16_t code,
|
||||
ret = PTP_ERROR_DATA_EXPECTED;
|
||||
} else
|
||||
if (dtoh16(req->code)!=code) {
|
||||
ret = req->code;
|
||||
ret = dtoh16(req->code);
|
||||
}
|
||||
if (ret!=PTP_RC_OK)
|
||||
ptp_error (params,
|
||||
@@ -167,7 +167,7 @@ ptp_getresp (PTPParams* params, PTPReq* databuf, uint16_t code)
|
||||
ret = PTP_ERROR_RESP_EXPECTED;
|
||||
} else
|
||||
if (dtoh16(req->code)!=code) {
|
||||
ret = req->code;
|
||||
ret = dtoh16(req->code);
|
||||
}
|
||||
if (ret!=PTP_RC_OK)
|
||||
ptp_error (params,
|
||||
|
||||
Reference in New Issue
Block a user