Skip to content

Commit a84f673

Browse files
authored
Bugfix for COM Record instance creation. (#2641)
When a tuple of com_record instances was created from a SAFEARRAY of COM Records, the data of all com_record tuple elements was always stored in the RecordBuffer segment of the first com_record tuple element.
1 parent 3906a37 commit a84f673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com/win32com/src/PyRecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ PyRecord *PyRecord::new_record(IRecordInfo *ri, PVOID data, PyRecordBuffer *owne
257257
PyErr_NoMemory();
258258
return NULL;
259259
}
260-
return new (buf) PyRecord(ri, owner->data, owner);
260+
return new (buf) PyRecord(ri, data, owner);
261261
}
262262

263263
PyRecord::PyRecord(IRecordInfo *ri, PVOID data, PyRecordBuffer *buf_owner)

0 commit comments

Comments
 (0)