Rob Shearman : ole32: Fail before constructing an object in CreateStreamOnHGlobal to avoid a memory leak .