From: jstebbins Date: Tue, 28 Apr 2015 22:55:24 +0000 (+0000) Subject: LinGui: fix dest file generateion for block devices X-Git-Tag: 1.0.0~1221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=722e5be5cb99797662346f5643c71d8da6357dd3;p=handbrake LinGui: fix dest file generateion for block devices git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7132 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 832551177..e4a0857a6 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -735,7 +735,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source) if (g_stat(filename, &stat_buf) == 0) { len = strlen(filename); - if (stat_buf.st_mode & S_IFDIR) + if (S_ISDIR(stat_buf.st_mode)) { // Skip dos drive letters #if defined(_WIN32) @@ -787,7 +787,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source) g_strfreev (path); } } - else if (stat_buf.st_mode & S_IFBLK) + else if (S_ISBLK(stat_buf.st_mode)) { // Is regular file or block dev. // Check to see if it is a dvd image