From 7ff1253da6da596961f05df0b0367431af85d6e6 Mon Sep 17 00:00:00 2001 From: lovechinamo Date: Thu, 2 Jun 2022 09:52:25 +0800 Subject: [PATCH] Signed-off-by: lovechinamo Changes to be committed: --- services/src/peruser_setting.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/src/peruser_setting.cpp b/services/src/peruser_setting.cpp index a945e2e..e0ee0cd 100644 --- a/services/src/peruser_setting.cpp +++ b/services/src/peruser_setting.cpp @@ -128,8 +128,8 @@ namespace MiscServices { */ int PerUserSetting::OnPackageRemoved(std::u16string& packageName, bool *isSecurityIme) { - if (isSecurityIme) { - isSecurityIme = false; + if (*isSecurityIme) { + *isSecurityIme = false; } std::u16string imeId = GetImeId(packageName); if (!imeId.size()) { @@ -151,8 +151,8 @@ namespace MiscServices { } } if (securityFlag) { - if (isSecurityIme) { - isSecurityIme = true; + if (*isSecurityIme) { + *isSecurityIme = true; } return ErrorCode::NO_ERROR; }