summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/frmMain.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 94b740059..79be56d09 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1133,7 +1133,7 @@ namespace Handbrake
MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
else
{
- if (!Directory.Exists(text_destination.Text))
+ if (!Directory.Exists(Path.GetDirectoryName(text_destination.Text)))
{
MessageBox.Show("Destination Path does not exist.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;