Windows: fix a potential crash when requesting a single update


The startHandler() method can set an error and return false in case
of an error.
Suppose that the client code decides to replace the plugin in case of
an error (that's exactly what the SatelliteInfo example does).
Then the following scenario is possible:
* QGeoPositionInfoSourceWinRT::requestUpdate() is called
* It calls startHandler(), which returns false and sets an error
* The client code handles the error and decides to use another backend
* During the backend change, the current windows backend is deleted...
* ... and we're back in QGeoPositionInfoSourceWinRT::requestUpdate(),
  trying to dereference the already-removed d_ptr.

Fix the issue by making sure that we do not do anything if
startHandler() returns false.

Fixes: QTBUG-119477
Pick-to: 6.7 6.6 6.5 6.2
Change-Id: Ifc15c7f397591b888cba81c47965c87bff1e1913
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commitbc977c13ef8991743173f3dbc957eecbe82eb3b5
parentc96404b9642c59cc922fe224c687ac02b37ab05d
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 12 Mar 2024 13:01:13 +0100