summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/C#/Program.cs5
-rw-r--r--win/C#/frmReadDVD.cs7
2 files changed, 6 insertions, 6 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs
index 25a4d415d..22b601f01 100644
--- a/win/C#/Program.cs
+++ b/win/C#/Program.cs
@@ -17,6 +17,7 @@ using System.IO;
using System.Diagnostics;
using System.Threading;
using System.Runtime.InteropServices;
+using System.Globalization;
namespace Handbrake
@@ -29,10 +30,9 @@ namespace Handbrake
[STAThread]
static void Main()
{
-
// Development Code Expiry.
// Remember to comment out on public release!!!
- if (DateTime.Now > DateTime.Parse("20/1/2008")) { MessageBox.Show("Sorry, This development build of Handbrake has expired."); return; }
+ if (DateTime.Now > DateTime.Parse("2008/01/30", new CultureInfo("en-US"))) { MessageBox.Show("Sorry, This development build of Handbrake has expired."); return; }
// Check the system meets the system requirements.
Boolean launch = true;
@@ -61,7 +61,6 @@ namespace Handbrake
MessageBox.Show("frmMain.cs - systemCheck() " + exc.ToString());
}
-
// Either Launch or Close the Application
if (launch == true)
{
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs
index d7a074938..300c21e48 100644
--- a/win/C#/frmReadDVD.cs
+++ b/win/C#/frmReadDVD.cs
@@ -90,12 +90,13 @@ namespace Handbrake
string strCmdLine = String.Format(@"cmd /c """"{0}"" -i ""{1}"" -t0 -v >""{2}"" 2>&1""", handbrakeCLIPath, inputFile, dvdInfoPath);
- using (Process hbproc = Process.Start("CMD.exe", strCmdLine))
+ ProcessStartInfo hbParseDvd = new ProcessStartInfo("CMD.exe", strCmdLine);
+ hbParseDvd.WindowStyle = ProcessWindowStyle.Hidden;
+ using (Process hbproc = Process.Start(hbParseDvd))
{
hbproc.WaitForExit();
// TODO: Verify exit code if the CLI supports it properly
- }
-
+ }
if (!File.Exists(dvdInfoPath))
{