未验证 提交 aa136279 编写于 作者: C cheng_jinsong 提交者: Gitee

update interfaces/innerkits/syspara/param_wrapper.cpp.

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 46afb1bb
......@@ -164,7 +164,7 @@ std::string GetDeviceType(void)
};
static const char *productType = nullptr;
const char *type = GetProperty("const.build.devicetype", &productType);
if (type == NULL) {
if (type == nullptr) {
type = GetProperty("const.build.characteristics", &productType);
}
if (deviceTypeMap.count(type) != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册