From b772e0665fe9c94b2a49f98fd8cfa80924247f90 Mon Sep 17 00:00:00 2001 From: antonino maniscalco Date: Fri, 19 May 2023 16:45:15 +0200 Subject: [PATCH] Fix crash on linux when saving (PR#868 by pac85) When saving a wad for the second time some code would run that tried to use native windows function and caused a crash. --- Source/Core/General/FileLockChecker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/General/FileLockChecker.cs b/Source/Core/General/FileLockChecker.cs index 840fbe59..b9816f37 100755 --- a/Source/Core/General/FileLockChecker.cs +++ b/Source/Core/General/FileLockChecker.cs @@ -89,7 +89,7 @@ namespace CodeImp.DoomBuilder static public FileLockCheckResult CheckFile(string path) { //mxd. Do it the clunky way? (WinXP) - if(Environment.OSVersion.Version.Major < 6) + if(Environment.OSVersion.Version.Major < 6 || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { bool locked = false;