Skip to content

Commit

Permalink
Explicitly initialize COM with multi-threaded support.
Browse files Browse the repository at this point in the history
This is the safest option for applications that use COM, multi-threaded or not.
  • Loading branch information
slouken committed Dec 23, 2013
1 parent b5a6c40 commit 3666c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/windows/SDL_windows.c
Expand Up @@ -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! */
Expand Down

0 comments on commit 3666c1f

Please sign in to comment.