cwUi.cpp : goto errLabel in ui::create() if _createFromObj() fails.
This commit is contained in:
parent
b5eaa633ef
commit
b35658d550
3
cwUi.cpp
3
cwUi.cpp
@ -1303,7 +1303,10 @@ cw::rc_t cw::ui::create(
|
|||||||
cwLogWarning("The UI resource does not have a 'main' element.");
|
cwLogWarning("The UI resource does not have a 'main' element.");
|
||||||
else
|
else
|
||||||
if((rc = _createFromObj( p, main_obj, kInvalidId, kRootUuId, kInvalidId )) != kOkRC )
|
if((rc = _createFromObj( p, main_obj, kInvalidId, kRootUuId, kInvalidId )) != kOkRC )
|
||||||
|
{
|
||||||
rc = cwLogError(rc,"Create from UI resource failed.");
|
rc = cwLogError(rc,"Create from UI resource failed.");
|
||||||
|
goto errLabel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user