diff --git a/Pilz/Runtime/RuntimeInformationsEx.vb b/Pilz/Runtime/RuntimeInformationsEx.vb index 1a5dd21..d6f53c3 100644 --- a/Pilz/Runtime/RuntimeInformationsEx.vb +++ b/Pilz/Runtime/RuntimeInformationsEx.vb @@ -33,10 +33,10 @@ Namespace Runtime If t Is Nothing Then Dim windir = Environment.GetEnvironmentVariable("windir") - Dim ostypeDirWine = "Z:\proc\sys\kernel\ostype" - Dim ostypeDirNative = "/proc/sys/kernel/ostype" - Dim systemVersionWine = "Z:\System\Library\CoreServices\SystemVersion.plist" - Dim systemVersionNative = "/System/Library/CoreServices/SystemVersion.plist" + Const ostypeDirWine = "Z:\proc\sys\kernel\ostype" + Const ostypeDirNative = "/proc/sys/kernel/ostype" + Const systemVersionWine = "Z:\System\Library\CoreServices\SystemVersion.plist" + Const systemVersionNative = "/System/Library/CoreServices/SystemVersion.plist" If File.Exists(ostypeDirWine) Then ' Linux using wine Dim osTypeString As String = File.ReadAllText(ostypeDirWine)