Commit 40f44890 authored by Ludovic Rousseau's avatar Ludovic Rousseau

pcsc_scan: animate "Waiting for first reader"

Animation if PC/SC support reader Plug & Play.
parent 0f196739
......@@ -250,7 +250,14 @@ get_readers:
rgReaderStates[0].szReader = "\\\\?PnP?\\Notification";
rgReaderStates[0].dwCurrentState = SCARD_STATE_UNAWARE;
rv = SCardGetStatusChange(hContext, INFINITE, rgReaderStates, 1);
spin_start();
do
{
rv = SCardGetStatusChange(hContext, TIMEOUT, rgReaderStates, 1);
spin_update();
}
while (SCARD_E_TIMEOUT == rv);
spin_suspend();
test_rv("SCardGetStatusChange", rv, hContext);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment