diff options
author | George Hazan <george.hazan@gmail.com> | 2024-11-26 15:48:16 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-11-26 15:48:21 +0300 |
commit | 94782312a45edad08d6544be5a6aba402f461da1 (patch) | |
tree | 0c8149d70f3785493a5ac8ee8182c89854c0d811 /src | |
parent | f200ec71df622d7a94fc171363ff67732ffb440a (diff) |
code cleaning
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clisttray.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)
|