mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
gsourceclosure.c: Fix build on Windows
GPid is a HANDLE (aka void *) on Windows, not an int, so treat pid accordingly on Windows, as using pid as a gulong directly would likely be undesirable on Windows https://bugzilla.gnome.org/show_bug.cgi?id=704447
This commit is contained in:
parent
88ab63155d
commit
114b1ccf78
@ -117,8 +117,14 @@ g_child_watch_closure_callback (GPid pid,
|
||||
|
||||
g_value_init (&result_value, G_TYPE_BOOLEAN);
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
g_value_init (¶ms[0], G_TYPE_ULONG);
|
||||
g_value_set_ulong (¶ms[0], pid);
|
||||
#endif
|
||||
#ifdef G_OS_WIN32
|
||||
g_value_init (¶ms[0], G_TYPE_POINTER);
|
||||
g_value_set_pointer (¶ms[0], pid);
|
||||
#endif
|
||||
|
||||
g_value_init (¶ms[1], G_TYPE_INT);
|
||||
g_value_set_int (¶ms[1], status);
|
||||
|
Loading…
Reference in New Issue
Block a user