1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

DtSvc: fix error return from DtHelpReturnSelectedWidgetId

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.
This commit is contained in:
Adam Sampson 2021-07-04 17:48:41 +01:00 committed by Jon Trulson
parent edf57b6db3
commit 67ef980644

View file

@ -163,8 +163,10 @@ int _DtHelpReturnSelectedWidgetId(
status = pmySUNWProcList || SUNWDtHelpdlopen(); status = pmySUNWProcList || SUNWDtHelpdlopen();
_DtSvcProcessUnlock(); _DtSvcProcessUnlock();
if (!status) if (!status) {
return(NULL); *widget = NULL;
return(DtHELP_SELECT_ERROR);
}
return ((*pmySUNWProcList->DtHelpReturnSelectedWidgetIdSym)(parent, cursor, return ((*pmySUNWProcList->DtHelpReturnSelectedWidgetIdSym)(parent, cursor,
widget)); widget));