]> granicus.if.org Git - handbrake/commitdiff
LinGui: With mingw, disable access rights checking of destination directory.
authorjstebbins <jstebbins.hb@gmail.com>
Thu, 25 Jun 2009 15:41:08 +0000 (15:41 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Thu, 25 Jun 2009 15:41:08 +0000 (15:41 +0000)
The glib function for this only checks fat32 permissions and fails
randomly on NTFS.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2621 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/queuehandler.c

index 22b2c25e4f6c6a4caa7d8efef6b894bed9bcc402..d47a2aa66b64240d656ed50d234a01d8847eb4de 100644 (file)
@@ -596,6 +596,8 @@ validate_settings(signal_user_data_t *ud)
                g_free(destdir);
                return FALSE;
        }
+#if !defined(_WIN32)
+       // This doesn't work properly on windows
        if (g_access(destdir, R_OK|W_OK) != 0)
        {
                message = g_strdup_printf(
@@ -608,6 +610,7 @@ validate_settings(signal_user_data_t *ud)
                g_free(destdir);
                return FALSE;
        }
+#endif
        GFile *gfile;
        GFileInfo *info;
        guint64 size;