Commit d6047fe5 authored by Ludovic Rousseau's avatar Ludovic Rousseau

pcsc_scan: use return in test_rv macro

test_rv() will return from the function instead of exiting the program.
parent 7f1d4107
......@@ -54,7 +54,7 @@ do { \
{ \
printf("%s%s: %s%s\n", red, fct, pcsc_stringify_error(rv), color_end); \
(void)SCardReleaseContext(hContext); \
exit(-1); \
return -1; \
} \
} while(0)
......
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