On Tue Jul 25 14:02:09 2023 +0000, Hans Leidekker wrote:
[winscard.diff](/uploads/f2f688572b2d290953628277e4397bc1/winscard.diff) Here's a patch that accounts for the DWORD mismatch. Does it work for you? The SCardGetStatusChange() tests still fail and that's because this function is simply broken on macOS. It doesn't support the special reader name "\\?PnP?\Notification" and crashes when this name is in a list with other readers. The PCSC framework is an old fork of PCSC lite and its author has submitted bug reports and feature requests but Apple made it clear that it's no longer developing this interface. (see https://ludovicrousseau.blogspot.com/2015/12/os-x-el-capitan-bug-scardgetsta...) The other tests pass including sending commands to the card so it still seems useful to have this in Wine. If an app needs working SCardGetStatusChange() then that can probably be solved by switching to a current PCSC lite build.
@hans Although the test results seem to be the same with your patch (7 failures), my test app now works and I can read/process the info from my card, thanks!