cwUi.cpp : goto errLabel in ui::create() if _createFromObj() fails.

This commit is contained in:
kevin 2024-02-18 17:58:16 -05:00
parent b5eaa633ef
commit b35658d550

View File

@ -1303,7 +1303,10 @@ cw::rc_t cw::ui::create(
cwLogWarning("The UI resource does not have a 'main' element.");
else
if((rc = _createFromObj( p, main_obj, kInvalidId, kRootUuId, kInvalidId )) != kOkRC )
{
rc = cwLogError(rc,"Create from UI resource failed.");
goto errLabel;
}
}