On 17.02.2017 22:32, Zebediah Figura wrote:
SEGPTR seg_rclsid = MapLS(rclsid);
SEGPTR seg_riid = MapLS(riid);
SEGPTR seg_ppv = MapLS(ppv);
You should also unmap them in case of an error. (Or alternatively, you could change the specfile, and pass through the SEGPTRs).