Commit 317f7fa5 authored by Jehan's avatar Jehan

Bug 791514 - Cannot export to webp file.

fopen() modes "wb+" and "w+b" are aliases of the same opening mode
(truncate/create in binary read/write). But it turns out that Windows
implementation does not understand "wb+". The alias "w+b" works fine in
my tests.
parent eb218190
......@@ -174,7 +174,7 @@ save_layer (const gchar *filename,
gimp_filename_to_utf8(filename));
/* Attempt to open the output file */
if ((outfile = g_fopen (filename, "wb+")) == NULL)
if ((outfile = g_fopen (filename, "w+b")) == NULL)
{
g_set_error (error, G_FILE_ERROR,
g_file_error_from_errno (errno),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment