kbx: Fix an endless loop under Windows due to an incomplete fix.
* kbx/keybox-search.c (keybox_search): We need to seek to the last position in all cases not just when doing a NEXT.
This is because search from the beginning needs a keybox_search_reset.
We can only make an exception for KEYDB_SEARCH_MODE_FIRST..
- Fixes-commit: 49b236af0ecbb6df67513feb4b63851f2e159ea2
- Signed-off-by: Werner Koch <email@example.com>