From 80603eeb9d49fc7080b89ad9843d492fe40267ed Mon Sep 17 00:00:00 2001 From: clay_shooter <> Date: Wed, 5 Aug 2015 09:00:20 +0000 Subject: [PATCH] Added comment lines from original patch submission. no code changes --- jacob/jni/Dispatch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jacob/jni/Dispatch.cpp b/jacob/jni/Dispatch.cpp index aad1b75..1181895 100644 --- a/jacob/jni/Dispatch.cpp +++ b/jacob/jni/Dispatch.cpp @@ -535,6 +535,8 @@ JNIEXPORT jobject JNICALL Java_com_jacob_com_Dispatch_invokev buf = CreateErrorMsgFromInfo(hr, &excepInfo, nm); env->ReleaseStringUTFChars(name, nm); } else { + //the dispid was passed in not the name. + //make space for the id string dispIdAsName = new char[256]; // get the id string _itoa_s (dispID, dispIdAsName, 256,10);