From 94782312a45edad08d6544be5a6aba402f461da1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Nov 2024 15:48:16 +0300 Subject: code cleaning --- src/mir_app/src/clisttray.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_app/src/clisttray.cpp b/src/mir_app/src/clisttray.cpp index 2ca5bef375..263cc05f02 100644 --- a/src/mir_app/src/clisttray.cpp +++ b/src/mir_app/src/clisttray.cpp @@ -841,7 +841,8 @@ void InitTray(void) fTrayInited = true; if (IsWinVer7Plus()) - CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_ALL, IID_ITaskbarList3, (void**)&pTaskbarInterface); + if (FAILED(CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_ALL, IID_ITaskbarList3, (void**)&pTaskbarInterface))) + pTaskbarInterface = nullptr; } void UninitTray(void) -- cgit v1.2.3