From c0642a767ce8fab4e4f4aaba19d72eee2220daf5 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 31 Jul 2009 20:59:45 +0000 Subject: LinGui: fix a problem with running mingw cross compiled ghb under wine wine's implementation of GetVolumeInformation requires a '\' after drive letters. if not, it returns junk. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2741 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 4 ++-- gtk/src/ghb.ui | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index f25e6e563..ab7cb31d8 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -393,7 +393,7 @@ get_direct_dvd_volume_name(const gchar *drive) gchar *result = NULL; gchar vname[51], fsname[51]; - if (GetVolumeInformation(drive, vname, 50, NULL, NULL, NULL, fsname, 51)) + if (GetVolumeInformation(drive, vname, 50, NULL, NULL, NULL, fsname, 50)) { result = g_strdup_printf("%s", vname); } @@ -656,7 +656,6 @@ update_source_label(signal_user_data_t *ud, const gchar *source, gboolean update g_debug("update_source_label()"); len = strlen(filename); - if (filename[len-1] == G_DIR_SEPARATOR) filename[len-1] = 0; if (g_file_test(filename, G_FILE_TEST_IS_DIR)) { // Skip dos drive letters @@ -671,6 +670,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source, gboolean update } else { + if (filename[len-1] == G_DIR_SEPARATOR) filename[len-1] = 0; if (start != NULL) start++; else diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index e7eed9cfd..608743f4a 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -3443,7 +3443,7 @@ no-dct-decimate=0:cabac=1 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 12 @@ -4016,7 +4016,7 @@ no-dct-decimate=0:cabac=1 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 -- cgit v1.2.3