Changeset 125505 in webkit


Ignore:
Timestamp:
Aug 13, 2012 8:20:33 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Windows 64 bit compliance
https://bugs.webkit.org/show_bug.cgi?id=93275

Patch by Alex Christensen <alex.christensen@flexsim.com> on 2012-08-13
Reviewed by Brent Fulgham.

Fixed a few compile and link problems for Win64

  • WinLauncher/WinLauncher.cpp:
  • win/DLLLauncher/DLLLauncherMain.cpp:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r125487 r125505  
     12012-08-13  Alex Christensen  <alex.christensen@flexsim.com>
     2
     3        Windows 64 bit compliance
     4        https://bugs.webkit.org/show_bug.cgi?id=93275
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Fixed a few compile and link problems for Win64
     9
     10        * WinLauncher/WinLauncher.cpp:
     11        * win/DLLLauncher/DLLLauncherMain.cpp:
     12
    1132012-08-13  MORITA Hajime  <morrita@google.com>
    214
  • trunk/Tools/WinLauncher/WinLauncher.cpp

    r120133 r125505  
    229229{
    230230    hMainWnd = gViewWindow;
    231     DefWebKitProc = reinterpret_cast<WNDPROC>(::GetWindowLongPtr(hMainWnd, GWL_WNDPROC));
    232     ::SetWindowLongPtr(hMainWnd, GWL_WNDPROC, reinterpret_cast<LONG_PTR>(WndProc));
     231#if defined _M_AMD64 || defined _WIN64
     232    DefWebKitProc = reinterpret_cast<WNDPROC>(::GetWindowLongPtr(hMainWnd, GWLP_WNDPROC));
     233    ::SetWindowLongPtr(hMainWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(WndProc));
     234#else
     235    DefWebKitProc = reinterpret_cast<WNDPROC>(::GetWindowLong(hMainWnd, GWL_WNDPROC));
     236    ::SetWindowLong(hMainWnd, GWL_WNDPROC, reinterpret_cast<LONG_PTR>(WndProc));
     237#endif
    233238}
    234239
     
    315320    }
    316321
    317     DefEditProc = reinterpret_cast<WNDPROC>(GetWindowLongPtr(hURLBarWnd, GWL_WNDPROC));
    318     SetWindowLongPtr(hURLBarWnd, GWL_WNDPROC, reinterpret_cast<LONG_PTR>(MyEditProc));
     322#if defined _M_AMD64 || defined _WIN64
     323    DefEditProc = reinterpret_cast<WNDPROC>(GetWindowLongPtr(hURLBarWnd, GWLP_WNDPROC));
     324    SetWindowLongPtr(hURLBarWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(MyEditProc));
     325#else
     326    DefEditProc = reinterpret_cast<WNDPROC>(GetWindowLong(hURLBarWnd, GWL_WNDPROC));
     327    SetWindowLong(hURLBarWnd, GWL_WNDPROC, reinterpret_cast<LONG_PTR>(MyEditProc));
     328#endif
     329
    319330    SetFocus(hURLBarWnd);
    320331
  • trunk/Tools/win/DLLLauncher/DLLLauncherMain.cpp

    r104187 r125505  
    185185#if USE_CONSOLE_ENTRY_POINT
    186186    typedef int (WINAPI*EntryPoint)(int, const char*[]);
     187#if defined _M_AMD64 || defined _WIN64
     188    const char* entryPointName = "_dllLauncherEntryPoint";
     189#else
    187190    const char* entryPointName = "_dllLauncherEntryPoint@8";
     191#endif
    188192#else
    189193    typedef int (WINAPI*EntryPoint)(HINSTANCE, HINSTANCE, LPWSTR, int);
     194#if defined _M_AMD64 || defined _WIN64
     195    const char* entryPointName = "_dllLauncherEntryPoint";
     196#else
    190197    const char* entryPointName = "_dllLauncherEntryPoint@16";
     198#endif
    191199#endif
    192200
Note: See TracChangeset for help on using the changeset viewer.