Fix the taskbar extension not initializing properly

The COM interface is initialized a thousand times everywhere, but
apparently not before the taskbar extension is loaded ;)

Somehow this managed to work sometimes and even return a valid object,
but that object was destroyed soon afterwards causing crashes
This commit is contained in:
krzys-h 2018-12-31 11:17:39 +01:00
parent 99e5791ae4
commit 13517bc226

View File

@ -82,6 +82,8 @@ static void* win32_display_server_init(void)
return NULL;
#ifdef HAS_TASKBAR_EXT
CoInitialize(NULL);
#ifdef __cplusplus
/* When compiling in C++ mode, GUIDs are references instead of pointers */
hr = CoCreateInstance(CLSID_TaskbarList, NULL,