return(NULL) is correct for the other functions here but not for this one, since it's meant to return a DtHELP_ error code. The man page also says it should also set *widget to NULL on error.