trivial: win32: fix subprocess call

```
19:22:39:0430 FuCommon             running 'curl.exe https://cdn.fwupd.org/downloads/firmware.xml.gz.jcat --output C:\Users\mlimonci\AppData\Local\Microsoft\Windows\INetCache\fwupd\firmware.xml.gz.jcat --cacert C:\Program Files (x86)\fwupd\bin\..\bin\ca-bundle.crt'
19:22:39:0515 GLib-GObject         invalid cast from 'GWin32InputStream' to 'GPollableInputStream'
19:22:39:0515 GLib-GIO             g_pollable_input_stream_create_source: assertion 'G_IS_POLLABLE_INPUT_STREAM (stream)' failed
19:22:39:0516 GLib                 g_source_attach: assertion 'source != NULL' failed
19:22:39:0516 GLib                 g_source_set_callback: assertion 'source != NULL' failed
```
This commit is contained in:
Mario Limonciello 2021-12-14 13:28:43 -06:00 committed by Mario Limonciello
parent bba3cd79de
commit 0b56a58b65

View File

@ -789,6 +789,7 @@ fu_common_spawn_sync(const gchar *const *argv,
if (subprocess == NULL)
return FALSE;
#ifndef _WIN32
/* watch for process to exit */
helper = g_new0(FuCommonSpawnHelper, 1);
helper->handler_cb = handler_cb;
@ -814,6 +815,7 @@ fu_common_spawn_sync(const gchar *const *argv,
g_cancellable_disconnect(cancellable, cancellable_id);
if (g_cancellable_set_error_if_cancelled(helper->cancellable, error))
return FALSE;
#endif
return g_subprocess_wait_check(subprocess, cancellable, error);
}