]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected VT_DATE conversion (bug 1683882)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Mar 2007 19:58:50 +0000 (19:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Mar 2007 19:58:50 +0000 (19:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/automtn.cpp

index d5d1725835eb8a5638a4995199c86f2e2db63f1e..a0937bdfdb2b1743c9ea70fe67c616cc8e978c9b 100644 (file)
@@ -688,7 +688,7 @@ WXDLLEXPORT bool wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant&
             unsigned short dosTime = 0;
             VariantTimeToDosDateTime(oleVariant.date, & dosDate, & dosTime);
 
             unsigned short dosTime = 0;
             VariantTimeToDosDateTime(oleVariant.date, & dosDate, & dosTime);
 
-            long dosDateTime = (dosDate << 16) || dosTime;
+            long dosDateTime = (dosDate << 16) | dosTime;
             wxDateTime date;
             date.SetFromDOS(dosDateTime);
             variant = date;
             wxDateTime date;
             date.SetFromDOS(dosDateTime);
             variant = date;