]>
Commit | Line | Data |
---|---|---|
34b152c0 JB |
1 | --- pcsc-lite-1.2.9-beta7/src/winscard.c.orig 2005-03-01 21:16:13.000000000 +0100 |
2 | +++ pcsc-lite-1.2.9-beta7/src/winscard.c 2005-03-03 12:29:40.000000000 +0100 | |
3 | @@ -214,6 +214,12 @@ | |
4 | } | |
5 | else | |
6 | { | |
7 | + /* | |
8 | + * If it is set to ANY let it do any of the protocols | |
9 | + */ | |
10 | + if (dwPreferredProtocols & SCARD_PROTOCOL_ANY_OLD) | |
11 | + dwPreferredProtocols = SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1; | |
12 | + | |
13 | if (! (dwPreferredProtocols & rContext->readerState->cardProtocol)) | |
14 | return SCARD_E_PROTO_MISMATCH; | |
15 | } | |
16 | @@ -518,6 +524,12 @@ | |
17 | } | |
18 | else | |
19 | { | |
20 | + /* | |
21 | + * If it is set to ANY let it do any of the protocols | |
22 | + */ | |
23 | + if (dwPreferredProtocols & SCARD_PROTOCOL_ANY_OLD) | |
24 | + dwPreferredProtocols = SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1; | |
25 | + | |
26 | if (! (dwPreferredProtocols & rContext->readerState->cardProtocol)) | |
27 | return SCARD_E_PROTO_MISMATCH; | |
28 | } |