Skip to content

Commit 22b28ab

Browse files
committed
Implement record pointers as method parameters of a Dispatch Interface
to get server side modifications of a record marshaled back to the client.
1 parent a9010f3 commit 22b28ab

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

com/win32com/client/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ def _ResolveType(typerepr, itypeinfo):
545545
if was_user and subrepr in [
546546
pythoncom.VT_DISPATCH,
547547
pythoncom.VT_UNKNOWN,
548-
pythoncom.VT_RECORD,
549548
]:
550549
# Drop the VT_PTR indirection
551550
return subrepr, sub_clsid, sub_doc

com/win32com/src/oleargs.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ BOOL PythonOleArgHelper::MakeObjToVariant(PyObject *obj, VARIANT *var, PyObject
15721572
// Nothing else to do - the code below sets the VT up correctly.
15731573
break;
15741574
case VT_RECORD:
1575+
case VT_RECORD | VT_BYREF:
15751576
rc = PyObject_AsVARIANTRecordInfo(obj, var);
15761577
break;
15771578
case VT_CY:

0 commit comments

Comments
 (0)