Skip to content

Commit

Permalink
Fix typo in (unused) error code SCARD_E_UNKNOWN_RES_MSG
Browse files Browse the repository at this point in the history
Windows documentation says:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpesc/9861f8da-76fe-41e6-847e-40c9aa35df8d
  SCARD_E_UNKNOWN_RES_MSG 0x8010002B
  An unrecognized error code was returned from a layered component.

Thanks to rhoog-ine for the bug report
" Error symbol SCARD_E_UNKNOWN_RES_MNG should be SCARD_E_UNKNOWN_RES_MSG #169 "
Closes: #169
  • Loading branch information
LudovicRousseau committed Feb 27, 2024
1 parent e3bfa44 commit 65f9b61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PCSC/pcsclite.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ extern const SCARD_IO_REQUEST g_rgSCardT0Pci, g_rgSCardT1Pci, g_rgSCardRawPci;
/** @ingroup ErrorCodes */
#define SCARD_E_INVALID_CHV ((LONG)0x8010002A) /**< The supplied PIN is incorrect. */
/** @ingroup ErrorCodes */
#define SCARD_E_UNKNOWN_RES_MNG ((LONG)0x8010002B) /**< An unrecognized error code was returned from a layered component. */
#define SCARD_E_UNKNOWN_RES_MSG ((LONG)0x8010002B) /**< An unrecognized error code was returned from a layered component. */
/** @ingroup ErrorCodes */
#define SCARD_E_NO_SUCH_CERTIFICATE ((LONG)0x8010002C) /**< The requested certificate does not exist. */
/** @ingroup ErrorCodes */
Expand Down
2 changes: 1 addition & 1 deletion src/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ PCSC_API const char* pcsc_stringify_error(const LONG pcscError)
/* case SCARD_E_WRITE_TOO_MANY: */
/* case SCARD_E_BAD_SEEK: */
/* case SCARD_E_INVALID_CHV: */
/* case SCARD_E_UNKNOWN_RES_MNG: */
/* case SCARD_E_UNKNOWN_RES_MSG: */
/* case SCARD_E_NO_SUCH_CERTIFICATE: */
/* case SCARD_E_CERTIFICATE_UNAVAILABLE: */
case SCARD_E_NO_READERS_AVAILABLE:
Expand Down
2 changes: 1 addition & 1 deletion src/spy/pcsc-spy
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class PCSCspy(object):
0x80100028: "SCARD_E_WRITE_TOO_MANY",
0x80100029: "SCARD_E_BAD_SEEK",
0x8010002A: "SCARD_E_INVALID_CHV",
0x8010002B: "SCARD_E_UNKNOWN_RES_MNG",
0x8010002B: "SCARD_E_UNKNOWN_RES_MSG",
0x8010002C: "SCARD_E_NO_SUCH_CERTIFICATE",
0x8010002D: "SCARD_E_CERTIFICATE_UNAVAILABLE",
0x8010002E: "SCARD_E_NO_READERS_AVAILABLE",
Expand Down

0 comments on commit 65f9b61

Please sign in to comment.