summaryrefslogtreecommitdiffstats
path: root/WebKit/win/WebKitDLL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/win/WebKitDLL.cpp')
-rw-r--r--WebKit/win/WebKitDLL.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebKit/win/WebKitDLL.cpp b/WebKit/win/WebKitDLL.cpp
index 9f4eaeb..bc7aa60 100644
--- a/WebKit/win/WebKitDLL.cpp
+++ b/WebKit/win/WebKitDLL.cpp
@@ -36,6 +36,7 @@
#include <WebCore/PageGroup.h>
#include <WebCore/RenderThemeWin.h>
#include <WebCore/SharedBuffer.h>
+#include <WebCore/WebCoreInstanceHandle.h>
#include <WebCore/Widget.h>
#include <wtf/Vector.h>
#include <tchar.h>
@@ -60,7 +61,7 @@ STDAPI_(BOOL) DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID /*lpRe
case DLL_PROCESS_ATTACH:
gLockCount = gClassCount = 0;
gInstance = hModule;
- WebCore::Page::setInstanceHandle(hModule);
+ WebCore::setInstanceHandle(hModule);
return TRUE;
case DLL_PROCESS_DETACH:
@@ -77,7 +78,7 @@ STDAPI_(BOOL) DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID /*lpRe
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
bool found = false;
- for (int i = 0; i < ARRAYSIZE(gRegCLSIDs); i++) {
+ for (size_t i = 0; i < WTF_ARRAY_LENGTH(gRegCLSIDs); ++i) {
if (IsEqualGUID(rclsid, gRegCLSIDs[i])) {
found = true;
break;