diff options
-rw-r--r-- | src/activeqt/control/qaxserverbase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp index 88c3fd7..fdafbd0 100644 --- a/src/activeqt/control/qaxserverbase.cpp +++ b/src/activeqt/control/qaxserverbase.cpp @@ -2502,9 +2502,8 @@ HRESULT WINAPI QAxServerBase::Invoke(DISPID dispidMember, REFIID riid, } } if (!type.isEmpty() && type != "void" && pvarResult) { - if (!varp[0].isValid() && type != "QVariant") + if (argv[0] == argv_pointer && type != "QVariant") varp[0] = QVariant(QMetaType::fromName(type), argv_pointer); -// varp[0].setValue(argv_pointer[0], type); ok = QVariantToVARIANT(varp[0], *pvarResult, type); } } |