diff --git a/cde/lib/DtSvc/DtUtil2/SunDtHelp.c b/cde/lib/DtSvc/DtUtil2/SunDtHelp.c index 759a87554..b133fdc8b 100644 --- a/cde/lib/DtSvc/DtUtil2/SunDtHelp.c +++ b/cde/lib/DtSvc/DtUtil2/SunDtHelp.c @@ -163,8 +163,10 @@ int _DtHelpReturnSelectedWidgetId( status = pmySUNWProcList || SUNWDtHelpdlopen(); _DtSvcProcessUnlock(); - if (!status) - return(NULL); + if (!status) { + *widget = NULL; + return(DtHELP_SELECT_ERROR); + } return ((*pmySUNWProcList->DtHelpReturnSelectedWidgetIdSym)(parent, cursor, widget));