diff --git a/Assets/Scripts/Sharing/DriveAccess.cs b/Assets/Scripts/Sharing/DriveAccess.cs index cdad73556a..798fddfe75 100644 --- a/Assets/Scripts/Sharing/DriveAccess.cs +++ b/Assets/Scripts/Sharing/DriveAccess.cs @@ -120,7 +120,15 @@ private static string GetDeviceId() Debug.LogError("Host id not implemented for iOS"); return "iOS-unknown"; default: - return GetPcId(); + try + { + return GetPcId(); + } + catch (Exception e) + { + // We suspect wmic.xe can cause an exception on some systems, so we catch it here. + return "PC-unknown"; + } } }