summaryrefslogtreecommitdiff
path: root/ui/Taskbar_Seven/taskbar.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:59 +0200
commita1c91f4695e208d5a8f80dc37b1818169b7829ff (patch)
tree52f5134376d17c99b6c9e53133a2eb5cf171377c /ui/Taskbar_Seven/taskbar.cpp
parent5.16 (diff)
downloadFreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.gz
FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.bz2
FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.zip
5.17
Diffstat (limited to 'ui/Taskbar_Seven/taskbar.cpp')
-rw-r--r--ui/Taskbar_Seven/taskbar.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/Taskbar_Seven/taskbar.cpp b/ui/Taskbar_Seven/taskbar.cpp
index 6b34fc1a..72be7016 100644
--- a/ui/Taskbar_Seven/taskbar.cpp
+++ b/ui/Taskbar_Seven/taskbar.cpp
@@ -31,7 +31,10 @@ ComPtr<ITaskbarList3> getInstance()
CLSCTX_ALL,
IID_PPV_ARGS(taskbarlist.init()));
if (FAILED(hr))
- lastErrorMessage = generateErrorMsg(L"Error calling \"CoCreateInstance\".", hr);
+ {
+ lastErrorMessage = formatComError(L"Error calling \"CoCreateInstance\".", hr);
+ return ComPtr<ITaskbarList3>();
+ }
return taskbarlist;
}
@@ -70,7 +73,7 @@ bool tbseven::setStatus(void* hwnd, //HWND: window assciated to the taskbar icon
flag); //[in] TBPFLAG tbpFlags
if (FAILED(hr))
{
- lastErrorMessage = generateErrorMsg(L"Error calling \"SetProgressState\".", hr);
+ lastErrorMessage = formatComError(L"Error calling \"SetProgressState\".", hr);
return false;
}
@@ -92,7 +95,7 @@ bool tbseven::setProgress(void* hwnd, //HWND: window assciated to the taskbar ic
total); //[in] ULONGLONG ullTotal
if (FAILED(hr))
{
- lastErrorMessage = generateErrorMsg(L"Error calling \"SetProgressValue\".", hr);
+ lastErrorMessage = formatComError(L"Error calling \"SetProgressValue\".", hr);
return false;
}
bgstack15