We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967b397 commit 1c8a9bdCopy full SHA for 1c8a9bd
comtypes/test/test_portabledevice.py
@@ -103,15 +103,13 @@ def downloadFirstFile(objectID):
103
resources = content.Transfer()
104
STGM_READ = c_uint(0)
105
optimalTransferSizeBytes = pointer(c_ulong(0))
106
- pFileStream = POINTER(port_api.IStream)()
107
- optimalTransferSizeBytes, pFileStream = resources.GetStream(
+ optimalTransferSizeBytes, fileStream = resources.GetStream(
108
objectID,
109
WPD_RESOURCE_DEFAULT,
110
STGM_READ,
111
optimalTransferSizeBytes,
112
)
113
blockSize = optimalTransferSizeBytes.contents.value
114
- fileStream = pFileStream.value
115
while True:
116
#
117
# # This crashes without an exception - likely a segfault somewhere deeper.
0 commit comments