mirror of https://github.com/GNOME/gimp.git
app: in gimp-spawn.c, add missing #include on Windows
... and improve argument validation.
This commit is contained in:
parent
1b1fba199a
commit
52b0e61001
|
@ -33,6 +33,7 @@
|
|||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
@ -164,6 +165,7 @@ gimp_spawn_async (gchar **argv,
|
|||
GError **error)
|
||||
{
|
||||
g_return_val_if_fail (argv != NULL, FALSE);
|
||||
g_return_val_if_fail (argv[0] != NULL, FALSE);
|
||||
|
||||
#ifdef HAVE_VFORK
|
||||
if (flags == (G_SPAWN_LEAVE_DESCRIPTORS_OPEN |
|
||||
|
|
Loading…
Reference in New Issue