mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-11 00:55:20 +00:00
Explicitly initialize COM with multi-threaded support.
This is the safest option for applications that use COM, multi-threaded or not.
This commit is contained in:
parent
b5a6c407d0
commit
3666c1f7ca
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ WIN_SetError(const char *prefix)
|
|||
HRESULT
|
||||
WIN_CoInitialize(void)
|
||||
{
|
||||
const HRESULT hr = CoInitialize(NULL);
|
||||
const HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
|
||||
|
||||
/* S_FALSE means success, but someone else already initialized. */
|
||||
/* You still need to call CoUninitialize in this case! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue