mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-27 09:00:55 +00:00
commit
03ce788801
@ -134,6 +134,9 @@ int32_t WindowManagerImpl::FindWindow(std::string name, int64_t& windowId)
|
||||
return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY);
|
||||
} else {
|
||||
sptr<CJWindowImpl> newWindow = CreateCjWindowObject(window);
|
||||
if (newWindow == nullptr) {
|
||||
return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY);
|
||||
}
|
||||
windowId = newWindow->GetID();
|
||||
return WINDOW_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user