Hi Zhenbo,
On 07/29/14 05:24, Zhenbo Li wrote:
- nsres = nsIDOMHTMLInputElement_GetForm(This->nsinput, &nsform);
- if (NS_FAILED(nsres) || nsform == NULL) {
ERR("GetForm failed: %08x, nsform: %p\n", nsres, nsform);
p = NULL;
Not setting output value would be probably fine in this case, but if you do, please do it right (*p = NULL;).
Jacek