Fix SetupDiEnumDeviceInfo crash on Windows