diff options
-rw-r--r-- | security/opensc/files/patch-src_libopensc_reader-pcsc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/opensc/files/patch-src_libopensc_reader-pcsc.c b/security/opensc/files/patch-src_libopensc_reader-pcsc.c new file mode 100644 index 000000000000..5598836ac228 --- /dev/null +++ b/security/opensc/files/patch-src_libopensc_reader-pcsc.c @@ -0,0 +1,19 @@ +--- src/libopensc/reader-pcsc.c.orig Fri Feb 23 22:13:56 2007 ++++ src/libopensc/reader-pcsc.c Fri Feb 23 22:14:40 2007 +@@ -60,7 +60,6 @@ + #undef SCARD_PROTOCOL_ANY + #define SCARD_PROTOCOL_ANY (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1) + #ifdef _WIN32 +-#define SCARD_SCOPE_GLOBAL SCARD_SCOPE_USER + + /* Error printing */ + #define PCSC_ERROR(ctx, desc, rv) sc_error(ctx, desc ": %lx\n", rv); +@@ -717,7 +716,7 @@ + struct pcsc_global_private_data *gpriv; + scconf_block *conf_block; + +- rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL, ++ rv = SCardEstablishContext(SCARD_SCOPE_USER, + NULL, NULL, &pcsc_ctx); + if (rv != SCARD_S_SUCCESS) + return pcsc_ret_to_error(rv); |