mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
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:
parent
99e5791ae4
commit
13517bc226
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user