winscard: add pcsc-lite helpers for upcoming implementation
juan_lang at yahoo.com
Wed May 23 23:46:52 CDT 2007
You don't use the return value:
@@ -42,9 +43,11 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD
fdwReason, LPVOID lpvReserved)
WINSCARD_hModule = hinstDLL;
I suspect it's safer not to fail loading winscard if PCSC-Lite isn't
available. Instead, the functions such as SCardListCards should probably
return empty lists. But knowing to do so relies on knowing that PCSC-Lite
couldn't be initialized, so the return value shouldn't be thrown away.
Or, remove the return value, and have every function check the function
pointers it needs.
____________________________________________________________________________________Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
More information about the wine-devel