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:
parent
edf57b6db3
commit
67ef980644
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue