diff options
Diffstat (limited to 'JavaScriptCore/wtf/win')
-rw-r--r-- | JavaScriptCore/wtf/win/MainThreadWin.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/JavaScriptCore/wtf/win/MainThreadWin.cpp b/JavaScriptCore/wtf/win/MainThreadWin.cpp index c6dcb7d..ee70b59 100644 --- a/JavaScriptCore/wtf/win/MainThreadWin.cpp +++ b/JavaScriptCore/wtf/win/MainThreadWin.cpp @@ -32,7 +32,7 @@ #include "Assertions.h" #include "Threading.h" -#if !PLATFORM(WINCE) +#if !OS(WINCE) #include <windows.h> #endif @@ -56,7 +56,8 @@ void initializeMainThreadPlatform() if (threadingWindowHandle) return; -#if PLATFORM(WINCE) + HWND hWndParent = 0; +#if OS(WINCE) WNDCLASS wcex; memset(&wcex, 0, sizeof(WNDCLASS)); #else @@ -66,14 +67,15 @@ void initializeMainThreadPlatform() #endif wcex.lpfnWndProc = ThreadingWindowWndProc; wcex.lpszClassName = kThreadingWindowClassName; -#if PLATFORM(WINCE) +#if OS(WINCE) RegisterClass(&wcex); #else RegisterClassEx(&wcex); + hWndParent = HWND_MESSAGE; #endif threadingWindowHandle = CreateWindow(kThreadingWindowClassName, 0, 0, - CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, HWND_MESSAGE, 0, 0, 0); + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, hWndParent, 0, 0, 0); threadingFiredMessage = RegisterWindowMessage(L"com.apple.WebKit.MainThreadFired"); } |