> + nsres = VarR8FromStr(str, 0, 0, &width); > + if (nsres == S_OK){ Also it's not correct or at least not good to use nsresult sres here, HRESULT hres is better, I don't think we want to share the same variable for nsresult and HRESULT type. -- Regards, Qian Hong - http://www.winehq.org