Invert test for error in mkdir. Fixes #137945

2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>

        * gtk/gtkfilesystemwin32.c
        (gtk_file_system_win32_create_folder): Invert test for error in
        mkdir.  Fixes #137945
This commit is contained in:
J. Ali Harlow 2004-03-24 17:33:09 +00:00 committed by J. Ali Harlow
parent 7056b15795
commit a788d2ffc4
6 changed files with 33 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/gtkfilesystemwin32.c
(gtk_file_system_win32_create_folder): Invert test for error in
mkdir. Fixes #137945
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk> 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
Fixed #138004 using Federico's code from #132327. Fixed #138004 using Federico's code from #132327.

View File

@ -1,3 +1,9 @@
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/gtkfilesystemwin32.c
(gtk_file_system_win32_create_folder): Invert test for error in
mkdir. Fixes #137945
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk> 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
Fixed #138004 using Federico's code from #132327. Fixed #138004 using Federico's code from #132327.

View File

@ -1,3 +1,9 @@
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/gtkfilesystemwin32.c
(gtk_file_system_win32_create_folder): Invert test for error in
mkdir. Fixes #137945
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk> 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
Fixed #138004 using Federico's code from #132327. Fixed #138004 using Federico's code from #132327.

View File

@ -1,3 +1,9 @@
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/gtkfilesystemwin32.c
(gtk_file_system_win32_create_folder): Invert test for error in
mkdir. Fixes #137945
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk> 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
Fixed #138004 using Federico's code from #132327. Fixed #138004 using Federico's code from #132327.

View File

@ -1,3 +1,9 @@
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/gtkfilesystemwin32.c
(gtk_file_system_win32_create_folder): Invert test for error in
mkdir. Fixes #137945
2004-03-24 J. Ali Harlow <ali@juiblex.co.uk> 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
Fixed #138004 using Federico's code from #132327. Fixed #138004 using Federico's code from #132327.

View File

@ -416,9 +416,9 @@ gtk_file_system_win32_create_folder (GtkFileSystem *file_system,
filename = filename_from_path (path); filename = filename_from_path (path);
g_return_val_if_fail (filename != NULL, FALSE); g_return_val_if_fail (filename != NULL, FALSE);
result = mkdir (filename, 0777) != 0; result = mkdir (filename, 0777) == 0;
if (!result) if (!result)
{ {
gchar *filename_utf8 = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL); gchar *filename_utf8 = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL);