src/core/windows/SDL_windows.c
changeset 6031 2cb2f3c56573
parent 5598 4d05ee9088b1
child 6044 35448a5ea044
--- a/src/core/windows/SDL_windows.c	Mon Oct 24 23:18:53 2011 -0400
+++ b/src/core/windows/SDL_windows.c	Wed Oct 26 12:04:05 2011 -0400
@@ -42,10 +42,11 @@
 HRESULT
 WIN_CoInitialize(void)
 {
+    const HRESULT hr = CoInitialize(NULL);
+
     /* S_FALSE means success, but someone else already initialized. */
     /* You still need to call CoUninitialize in this case! */
-    const HRESULT hr = CoInitialize(NULL);
-    if ((hr == S_OK) || (hr == S_FALSE)) {
+    if (hr == S_FALSE) {
         return S_OK;
     }