From c00a7ef3983812e575e97d45aa810a1d78a82c19 Mon Sep 17 00:00:00 2001 From: henrypp Date: Tue, 25 Jan 2022 13:00:52 +0600 Subject: [PATCH] do not display STATUS_OBJECT_NAME_NOT_FOUND code --- src/profile.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/profile.c b/src/profile.c index 559ed273..3ceb35ca 100644 --- a/src/profile.c +++ b/src/profile.c @@ -1435,10 +1435,13 @@ CleanupExit: if (status != STATUS_SUCCESS) { - if (hwnd) - _r_show_errormessage (hwnd, L"Profile loading!", status, NULL); + if (status != STATUS_OBJECT_NAME_NOT_FOUND) + { + if (hwnd) + _r_show_errormessage (hwnd, L"Profile loading!", status, NULL); - _r_log (LOG_LEVEL_ERROR, NULL, L"_app_profile_load", status, NULL); + _r_log (LOG_LEVEL_ERROR, NULL, L"_app_profile_load", status, NULL); + } } else {