tests: Fix reading of gboolean into pointer
Otherwise the payload will be lost later on when using GPOINTER_TO_INT to cast it back. See: #236
This commit is contained in:
parent
66c9e4a829
commit
9e2a7235e3
1 changed files with 3 additions and 1 deletions
|
@ -189,6 +189,7 @@ static void
|
|||
fpi_device_fake_capture (FpDevice *device)
|
||||
{
|
||||
FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
|
||||
gboolean wait_for_finger;
|
||||
|
||||
fake_dev->last_called_function = fpi_device_fake_capture;
|
||||
g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_CAPTURE);
|
||||
|
@ -199,7 +200,8 @@ fpi_device_fake_capture (FpDevice *device)
|
|||
return;
|
||||
}
|
||||
|
||||
fpi_device_get_capture_data (device, (gboolean *) &fake_dev->action_data);
|
||||
fpi_device_get_capture_data (device, &wait_for_finger);
|
||||
fake_dev->action_data = GINT_TO_POINTER (wait_for_finger);
|
||||
fpi_device_capture_complete (device, fake_dev->ret_image, fake_dev->ret_error);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue