Fix null VARIANT_BOOL issue, declaring stack-based variable and passing pointer.
Fix null VARIANT_BOOL issue, declaring stack-based variable and passing pointer.

MapWindow/MapWinGIS,MapWindow/MapWinGIS,MapWindow/MapWinGIS,MapWindow/MapWinGIS,MapWindow/MapWinGIS