diff options
author | Robin Krahl <me@robin-krahl.de> | 2019-01-14 19:03:53 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2019-01-14 19:03:53 +0100 |
commit | be6fd465ded13b4dd5b8ea10834a296efb8f1424 (patch) | |
tree | 886f7cff72ce1d13c4ce1a598bbc1b259d313ff3 /include/hidapi | |
parent | 1f3da5c76acb20b2183ac52373ed3b0b63e1151e (diff) | |
download | libnitrokey-fix/progress-bar-error.tar.gz libnitrokey-fix/progress-bar-error.tar.bz2 |
Return -2 if an error occured in NK_get_progress_bar_valuefix/progress-bar-error
NK_get_progress_bar_value returns the progress value from 0 to 100 or -1
if there is no pending operation. In the previous implementation, it
also returned zero if an error occurred, making it impossible to
distinguish progress zero and an error. Therefore, we change the return
value to -2 if an error occured.
Diffstat (limited to 'include/hidapi')
0 files changed, 0 insertions, 0 deletions