diff --git a/native/variant.cpp b/native/variant.cpp index fdebd3d2..2d2878b5 100644 --- a/native/variant.cpp +++ b/native/variant.cpp @@ -110,7 +110,10 @@ class ComObjectVariandHandlerImpl : public VariantHandlerImplRelease(); addr(v) = pDisp; v->vt = VT_DISPATCH; - } // otherwise use VT_UNKNOWN. See java.net issue 2. + } else { + // otherwise use VT_UNKNOWN. See java.net issue 2. + v->vt = VT_UNKNOWN; + } return v; } jobject get( JNIEnv* env, VARIANT* v, jclass retType ) {