[Pcsclite-git-commit] [PCSC] 03/03: Doxygen: SCardGetAttrib() *pcbAttrLen contains the buffer size
Ludovic Rousseau
rousseau at moszumanska.debian.org
Thu Mar 31 15:44:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit d6c7215335fe04abfd91206349c7d674de7bfcaa
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Thu Mar 31 16:43:16 2016 +0200
Doxygen: SCardGetAttrib() *pcbAttrLen contains the buffer size
On return *pcbAttrLen contains the actual length of the received
attribute.
If the buffer was not big enough the error SCARD_E_INSUFFICIENT_BUFFER
is returned and *pcbAttrLen contains the expected size.
---
src/winscard_clnt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/winscard_clnt.c b/src/winscard_clnt.c
index 69e57ff..e36cab7 100644
--- a/src/winscard_clnt.c
+++ b/src/winscard_clnt.c
@@ -2323,14 +2323,14 @@ end:
* supplied in \p pcbAttrLen, writes the length of the buffer that would
* have been returned if this parameter had not been NULL to \p pcbAttrLen,
* and returns a success code.
- * @param[in,out] pcbAttrLen Length of the \p pbAttr buffer in bytes.
+ * @param[in,out] pcbAttrLen Length of the \p pbAttr buffer in bytes and receives the actual length of the received attribute.
*
* @return Error code.
* @retval SCARD_S_SUCCESS Successful (\ref SCARD_S_SUCCESS)
* @retval SCARD_E_UNSUPPORTED_FEATURE the \p dwAttrId attribute is not supported by the driver (\ref SCARD_E_UNSUPPORTED_FEATURE)
* @retval SCARD_E_NOT_TRANSACTED the driver returned an error (\ref SCARD_E_NOT_TRANSACTED)
* @retval SCARD_E_INSUFFICIENT_BUFFER \p cbAttrLen is too big (\ref SCARD_E_INSUFFICIENT_BUFFER)
- * @retval SCARD_E_INSUFFICIENT_BUFFER Reader buffer not large enough (\ref SCARD_E_INSUFFICIENT_BUFFER)
+ * @retval SCARD_E_INSUFFICIENT_BUFFER \p pbAttr buffer not large enough. In that case the expected buffer size is indicated in \p *pcbAttrLen (\ref SCARD_E_INSUFFICIENT_BUFFER)
* @retval SCARD_E_INVALID_HANDLE Invalid \p hCard handle (\ref SCARD_E_INVALID_HANDLE)
* @retval SCARD_E_INVALID_PARAMETER A parameter is NULL and should not (\ref SCARD_E_INVALID_PARAMETER)
* @retval SCARD_E_NO_MEMORY Memory allocation failed (\ref SCARD_E_NO_MEMORY)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list