summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-09-02 23:57:32 +0000
committerjstebbins <[email protected]>2009-09-02 23:57:32 +0000
commit5bf69a2c0b11cea8438737c9973cfe670eedca63 (patch)
tree047b60bf44fba669c44dc5c0f5d6f18b806378a3 /gtk/src
parentb75907bdeb3675bdd8d9362e0e18add00e4e2c62 (diff)
LinGui: only strip leading drive letters if compiled for windows
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2801 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/callbacks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index eda462875..75cc32402 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -657,7 +657,9 @@ update_source_label(signal_user_data_t *ud, const gchar *source, gboolean update
if (g_file_test(filename, G_FILE_TEST_IS_DIR))
{
// Skip dos drive letters
+#if defined(_WIN32)
start = strchr(filename, ':');
+#endif
label = resolve_drive_name(filename);
if (label != NULL)
{