8039319: (smartcardio) Card.transmitControlCommand() does not work on Mac OS X

Reviewed-by: valeriep
This commit is contained in:
Ivan Gerasimov 2014-05-28 11:41:26 +04:00
parent 91d9371566
commit 2f8bdbc5fd

@ -136,5 +136,9 @@ JNIEXPORT void JNICALL Java_sun_security_smartcardio_PlatformPCSC_initialize
if ((*env)->ExceptionCheck(env)) {
return;
}
#ifndef __APPLE__
scardControl = (FPTR_SCardControl) findFunction(env, hModule, "SCardControl");
#else
scardControl = (FPTR_SCardControl) findFunction(env, hModule, "SCardControl132");
#endif // __APPLE__
}