On 04/25/14 13:34, Qian Hong wrote: > + atom = result; > + if(atom != result) > + return E_FAIL; > > I can't understand these few lines, are they typo or did I miss anything? result and atom has different size. This code checks if LRESULT describes atom or error. It may be used in case of LresultFromObject failure.