Fixes #5342: correct inventories on windows

adding comment