mirror of
https://github.com/openharmony/distributed_screen.git
synced 2026-07-21 04:25:28 -04:00
!28 修复fuzz安全测试的问题
Merge pull request !28 from sxzheng96/OpenHarmony-3.1-Release
This commit is contained in:
@@ -199,6 +199,11 @@ int32_t DScreenManager::EnableDistributedScreen(const std::string &devId, const
|
||||
{
|
||||
DHLOGI("EnableDistributedScreen, devId: %s, dhId:%s",
|
||||
GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str());
|
||||
if (!dScreenCallback_) {
|
||||
DHLOGE("dscreen manager not init.");
|
||||
return ERR_DH_SCREEN_SA_ENABLE_FAILED;
|
||||
}
|
||||
|
||||
std::string dScreenIdx = devId + SEPERATOR + dhId;
|
||||
std::shared_ptr<DScreen> dScreen = nullptr;
|
||||
if (dScreens_.count(dScreenIdx) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user