Fixes #5342: correct inventories on windows

ha, indeed, it was a bad copy/paste