mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 04:25:28 -04:00
fix csec
Signed-off-by: Zhang Peng <zhangpeng280@huawei.com> Change-Id: Ib23121a12e539c5bd2eb9c0233801f54e447e04b
This commit is contained in:
@@ -134,12 +134,13 @@ std::vector<ScreenId> AbstractScreenController::GetAllExpandOrMirrorScreenIds(
|
||||
|
||||
std::shared_ptr<RSDisplayNode> AbstractScreenController::GetRSDisplayNodeByScreenId(ScreenId dmsScreenId) const
|
||||
{
|
||||
static std::shared_ptr<RSDisplayNode> notFound = nullptr;
|
||||
sptr<AbstractScreen> screen = GetAbstractScreen(dmsScreenId);
|
||||
if (screen == nullptr) {
|
||||
return nullptr;
|
||||
return notFound;
|
||||
}
|
||||
if (screen->rsDisplayNode_ == nullptr) {
|
||||
return nullptr;
|
||||
return notFound;
|
||||
}
|
||||
WLOGI("GetRSDisplayNodeByScreenId: screen: %{public}" PRIu64", nodeId: %{public}" PRIu64" ",
|
||||
screen->dmsId_, screen->rsDisplayNode_->GetId());
|
||||
|
||||
Reference in New Issue
Block a user