if (NS_OK == rv && nsnull != xlibWindowService)
if (NS_SUCCEEDED(rv) && nsnull != xlibWindowService)
static nsXlibProcessTimeoutsProc GetProcessTimeoutsProc(void){  static nsXlibProcessTimeoutsProc sProc = nsnull;  if (!sProc)  {    nsIXlibWindowService * xlibWindowService = nsnull;        nsresult rv = nsServiceManager::GetService(kWindowServiceCID,                                               kWindowServiceIID,                                               (nsISupports **)&xlibWindowService);        NS_ASSERTION(NS_SUCCEEDED(rv),"Couldn't obtain window service.");        if (NS_OK == rv && nsnull != xlibWindowService)    {      xlibWindowService->GetProcessTimeoutsProc(&sProc);    #ifdef DEBUG_ramiro      printf("Process timeout proc is null - for now.\n");      static int once = 1;      if (once && sProc)      {        once = 0;        printf("YES! Process timeout proc is good.\n");      }#endif      NS_RELEASE(xlibWindowService);    }  }  return sProc;}