summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2021-08-21 03:26:43 (GMT)
committerKevin Walzer <kw@codebykevin.com>2021-08-21 03:26:43 (GMT)
commit9e8260fce8465df1fb1355ffb97ca653b9ede943 (patch)
treee46a09fa7b71f8c11c6643d9e7b7127cf41b76e7 /win
parent6aab7ba7932a3480c1e43364600be0ac6f3e7a2b (diff)
downloadtk-9e8260fce8465df1fb1355ffb97ca653b9ede943.zip
tk-9e8260fce8465df1fb1355ffb97ca653b9ede943.tar.gz
tk-9e8260fce8465df1fb1355ffb97ca653b9ede943.tar.bz2
Minor tweaks
Diffstat (limited to 'win')
-rw-r--r--win/tkWinWm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index e418a10..54e0ac9 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -2189,17 +2189,12 @@ UpdateWrapper(
}
/*
- *Initialize hooks for overlay icon.
+ * Initialize hooks for overlay icon.
* Start with TaskbarButtonCreated message.
*/
TaskbarButtonCreatedMessageId = RegisterWindowMessage(TEXT("TaskbarButtonCreated"));
- if (TaskbarButtonCreatedMessageId == 0) {
- Tcl_SetResult(interp, "Unable to register taskbar for icon overlay", TCL_VOLATILE);
- return TCL_ERROR;
- }
-
/*
* In case the application is run elevated, allow the
* TaskbarButtonCreated message through.
@@ -2210,6 +2205,7 @@ UpdateWrapper(
/* Load COM library for icon overlay. */
hr = CoInitialize(0);
if (SUCCEEDED(hr)) {
+
hr = CoCreateInstance(&CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskbarList3, &ptbl);
if (SUCCEEDED(hr)) {
ptbl->lpVtbl->Release(ptbl);