appinfo: Fix the build on windows

The previous commit forgot to protect some unix-only
calls by an ifdef.

Pointed out by John Emmas.
This commit is contained in:
Matthias Clasen 2017-06-02 11:42:42 -07:00
parent 7c5cd293d0
commit 34b21312f1

View File

@ -831,7 +831,11 @@ gboolean
g_app_info_launch_default_for_uri_finish (GAsyncResult *result, g_app_info_launch_default_for_uri_finish (GAsyncResult *result,
GError **error) GError **error)
{ {
#ifdef G_OS_UNIX
return g_openuri_portal_open_uri_finish (result, error); return g_openuri_portal_open_uri_finish (result, error);
#else
return g_task_propagate_boolean (G_TASK (result), error);
#endif
} }
/** /**