http://bugs.winehq.org/show_bug.cgi?id=58608
--- Comment #3 from Hans Leidekker hans@meelstraat.net --- Created attachment 79152 --> http://bugs.winehq.org/attachment.cgi?id=79152 patch
Thanks for the bug report. Here's an alternative patch that caches the protocol and avoids the SCardStatusW() call. Does it also fix your application?