From a98252c5ccb92621f957a226420ecc4df20f9fba Mon Sep 17 00:00:00 2001 From: lm Date: Wed, 31 Aug 2011 14:27:21 +0200 Subject: [PATCH] Minor compile time fixes. --- src/comm/QGCFlightGearLink.cc | 4 ++-- src/ui/map3D/QGCGoogleEarthView.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index a5eabbf87..95c8f130f 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -350,8 +350,8 @@ fgScenery = "--fg-scenery=/Applications/FlightGear.app/Contents/Resources/data/S #endif #ifdef Q_OS_WIN32 -processFgfs = "C:\Program Files (x86)\FlightGear\bin\Win32\fgfs"; -fgRoot = "--fg-root=C:\Program Files (x86)\FlightGear\data"; +processFgfs = "C:\\Program Files (x86)\\FlightGear\\bin\\Win32\\fgfs"; +fgRoot = "--fg-root=C:\\Program Files (x86)\\FlightGear\\data"; #endif #ifdef Q_OS_LINUX diff --git a/src/ui/map3D/QGCGoogleEarthView.cc b/src/ui/map3D/QGCGoogleEarthView.cc index fe0d9928d..2c16bb010 100644 --- a/src/ui/map3D/QGCGoogleEarthView.cc +++ b/src/ui/map3D/QGCGoogleEarthView.cc @@ -461,7 +461,7 @@ QVariant QGCGoogleEarthView::documentElement(QString name) name.prepend("JScript_"); HRESULT res = doc->getElementById(QStringToBSTR(name), &element); //BSTR elemString; - if (element) { + if (SUCCEEDED(res) && element) { //element->get_innerHTML(&elemString); VARIANT var; var.vt = VT_BSTR; -- 2.22.0