From efe67784b4f36bc80212c68cc1fe093fe65daf2a Mon Sep 17 00:00:00 2001 From: dbuechel Date: Thu, 15 Feb 2018 10:28:45 +0100 Subject: [PATCH] SEBWIN-219: Corrected release configuration. --- SafeExamBrowser.WindowsApi/ProcessFactory.cs | 16 +++----------- SafeExamBrowser.sln | 22 ++++++++++---------- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/SafeExamBrowser.WindowsApi/ProcessFactory.cs b/SafeExamBrowser.WindowsApi/ProcessFactory.cs index a6b18fb8..2f29cecb 100644 --- a/SafeExamBrowser.WindowsApi/ProcessFactory.cs +++ b/SafeExamBrowser.WindowsApi/ProcessFactory.cs @@ -30,24 +30,14 @@ namespace SafeExamBrowser.WindowsApi public IProcess StartNew(string path, params string[] args) { var processInfo = new PROCESS_INFORMATION(); - var processAttributes = new SECURITY_ATTRIBUTES(); - var threadAttributes = new SECURITY_ATTRIBUTES(); + var pAttr = new SECURITY_ATTRIBUTES(); + var tAttr = new SECURITY_ATTRIBUTES(); var startupInfo = new STARTUPINFO(); startupInfo.cb = Marshal.SizeOf(startupInfo); startupInfo.lpDesktop = desktop.CurrentName; - var success = Kernel32.CreateProcess( - null, - path, - ref processAttributes, - ref threadAttributes, - true, - Constant.NORMAL_PRIORITY_CLASS, - IntPtr.Zero, - null, - ref startupInfo, - out processInfo); + var success = Kernel32.CreateProcess(null, path, ref pAttr, ref tAttr, true, Constant.NORMAL_PRIORITY_CLASS, IntPtr.Zero, null, ref startupInfo, out processInfo); if (!success) { diff --git a/SafeExamBrowser.sln b/SafeExamBrowser.sln index 39a69e9e..3207399f 100644 --- a/SafeExamBrowser.sln +++ b/SafeExamBrowser.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.27130.2024 +VisualStudioVersion = 15.0.27130.2027 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SafeExamBrowser.Runtime", "SafeExamBrowser.Runtime\SafeExamBrowser.Runtime.csproj", "{E3AED2F8-B5DF-45D1-AC19-48066923D6D8}" EndProject @@ -127,40 +127,40 @@ Global {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Debug|x86.Build.0 = Debug|x86 {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Release|Any CPU.ActiveCfg = Release|Any CPU {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Release|Any CPU.Build.0 = Release|Any CPU - {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Release|x86.ActiveCfg = Release|Any CPU - {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Release|x86.Build.0 = Release|Any CPU + {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Release|x86.ActiveCfg = Release|x86 + {ACEE2EF1-14D2-4B52-8994-5C053055BB51}.Release|x86.Build.0 = Release|x86 {A502DF54-7169-4647-94BD-18B192924866}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A502DF54-7169-4647-94BD-18B192924866}.Debug|Any CPU.Build.0 = Debug|Any CPU {A502DF54-7169-4647-94BD-18B192924866}.Debug|x86.ActiveCfg = Debug|x86 {A502DF54-7169-4647-94BD-18B192924866}.Debug|x86.Build.0 = Debug|x86 {A502DF54-7169-4647-94BD-18B192924866}.Release|Any CPU.ActiveCfg = Release|Any CPU {A502DF54-7169-4647-94BD-18B192924866}.Release|Any CPU.Build.0 = Release|Any CPU - {A502DF54-7169-4647-94BD-18B192924866}.Release|x86.ActiveCfg = Release|Any CPU - {A502DF54-7169-4647-94BD-18B192924866}.Release|x86.Build.0 = Release|Any CPU + {A502DF54-7169-4647-94BD-18B192924866}.Release|x86.ActiveCfg = Release|x86 + {A502DF54-7169-4647-94BD-18B192924866}.Release|x86.Build.0 = Release|x86 {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Debug|Any CPU.Build.0 = Debug|Any CPU {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Debug|x86.ActiveCfg = Debug|x86 {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Debug|x86.Build.0 = Debug|x86 {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Release|Any CPU.ActiveCfg = Release|Any CPU {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Release|Any CPU.Build.0 = Release|Any CPU - {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Release|x86.ActiveCfg = Release|Any CPU - {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Release|x86.Build.0 = Release|Any CPU + {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Release|x86.ActiveCfg = Release|x86 + {7CC5A895-E0D3-4E43-9B39-CCEC05A5A6A7}.Release|x86.Build.0 = Release|x86 {15684416-FADF-4C51-85DE-4F343BFAB752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {15684416-FADF-4C51-85DE-4F343BFAB752}.Debug|Any CPU.Build.0 = Debug|Any CPU {15684416-FADF-4C51-85DE-4F343BFAB752}.Debug|x86.ActiveCfg = Debug|x86 {15684416-FADF-4C51-85DE-4F343BFAB752}.Debug|x86.Build.0 = Debug|x86 {15684416-FADF-4C51-85DE-4F343BFAB752}.Release|Any CPU.ActiveCfg = Release|Any CPU {15684416-FADF-4C51-85DE-4F343BFAB752}.Release|Any CPU.Build.0 = Release|Any CPU - {15684416-FADF-4C51-85DE-4F343BFAB752}.Release|x86.ActiveCfg = Release|Any CPU - {15684416-FADF-4C51-85DE-4F343BFAB752}.Release|x86.Build.0 = Release|Any CPU + {15684416-FADF-4C51-85DE-4F343BFAB752}.Release|x86.ActiveCfg = Release|x86 + {15684416-FADF-4C51-85DE-4F343BFAB752}.Release|x86.Build.0 = Release|x86 {B716A8B2-DF72-4143-9941-25E033089F5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B716A8B2-DF72-4143-9941-25E033089F5F}.Debug|Any CPU.Build.0 = Debug|Any CPU {B716A8B2-DF72-4143-9941-25E033089F5F}.Debug|x86.ActiveCfg = Debug|x86 {B716A8B2-DF72-4143-9941-25E033089F5F}.Debug|x86.Build.0 = Debug|x86 {B716A8B2-DF72-4143-9941-25E033089F5F}.Release|Any CPU.ActiveCfg = Release|Any CPU {B716A8B2-DF72-4143-9941-25E033089F5F}.Release|Any CPU.Build.0 = Release|Any CPU - {B716A8B2-DF72-4143-9941-25E033089F5F}.Release|x86.ActiveCfg = Release|Any CPU - {B716A8B2-DF72-4143-9941-25E033089F5F}.Release|x86.Build.0 = Release|Any CPU + {B716A8B2-DF72-4143-9941-25E033089F5F}.Release|x86.ActiveCfg = Release|x86 + {B716A8B2-DF72-4143-9941-25E033089F5F}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE