From 85ecb1d5ca5df6d69501f798c42dddd79190cb55 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 29 Jan 2011 14:20:42 +0000 Subject: [PATCH] OLE uses VARIANT_TRUE and not TRUE for its boolean values. VARIANT_TRUE is -1, unlike TRUE which is just 1, and we must use the former and not the latter with OLE VARIANT values. Closes #12910. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/ole/oleutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/ole/oleutils.cpp b/src/msw/ole/oleutils.cpp index c2383e80e1..9c50a53fdc 100644 --- a/src/msw/ole/oleutils.cpp +++ b/src/msw/ole/oleutils.cpp @@ -161,7 +161,7 @@ WXDLLEXPORT bool wxConvertVariantToOle(const wxVariant& variant, VARIANTARG& ole else if (type == wxT("bool")) { oleVariant.vt = VT_BOOL; - oleVariant.boolVal = variant.GetBool(); + oleVariant.boolVal = variant.GetBool() ? VARIANT_TRUE : VARIANT_FALSE; } else if (type == wxT("string")) { -- 2.45.2