ffi/com: fix unmarshal of by-ref results

This commit is contained in:
Matthew Flatt 2012-09-01 07:54:04 -06:00
parent eb7fd51d02
commit f1ff9c6059

View File

@ -1195,6 +1195,8 @@
`(array ? ,(vt-to-scheme-type (- vt VT_ARRAY)))]
[(= vt (bitwise-ior VT_USERDEFINED VT_BYREF))
'iunknown]
[(= VT_BYREF (bitwise-and vt VT_BYREF))
`(box ,(vt-to-scheme-type (- vt VT_BYREF)))]
[else
(string->symbol (format "COM-0x~x" vt))])]))