Make sure Spinneret inits and shuts down COM like a good boy.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2006 00:24:24 +0000 (00:24 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2006 00:24:24 +0000 (00:24 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14604 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/Spinneret/Spinneret/Spinneret.cpp

index 720ef37260657c5be1c5a7b3da680f5a2a022ce2..ece9e81f0a4502508f4f717d7a9794a465c1113a 100755 (executable)
@@ -29,6 +29,7 @@
 #include "WebFrame.h"
 
 #include <commctrl.h>
+#include <objbase.h>
 
 #define MAX_LOADSTRING 100
 #define URLBAR_HEIGHT  24
@@ -101,6 +102,9 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
     if (!InitInstance (hInstance, nCmdShow))
         return FALSE;
 
+    // Init COM
+    CoInitialize(NULL);
+
     hURLBarWnd = CreateWindow(L"EDIT", 0,
                         WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | ES_AUTOVSCROLL, 
                         0, 0, 0, 0,
@@ -137,6 +141,9 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
     _CrtDumpMemoryLeaks();
 #endif
 
+    // Shut down COM.
+    CoUninitialize();
+    
     return (int) msg.wParam;
 }