Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2016, 6:08:13 PM (8 years ago)
Author:
landauf
Message:

fixed code to compile in 64bit mode

Location:
code/trunk/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Core.cc

    r11071 r11115  
    433433        unsigned int coreNr = limitToCPU - 1;
    434434        // Get the current process core mask
    435         DWORD procMask;
    436         DWORD sysMask;
     435        ULONG_PTR procMask;
     436        ULONG_PTR sysMask;
    437437#  if _MSC_VER >= 1400 && defined (_M_X64)
    438438        GetProcessAffinityMask(GetCurrentProcess(), (PDWORD_PTR)&procMask, (PDWORD_PTR)&sysMask);
  • code/trunk/src/libraries/core/GraphicsManager.cc

    r11085 r11115  
    320320        HWND hwnd;
    321321        this->renderWindow_->getCustomAttribute("WINDOW", (void*)&hwnd);
    322         LONG iconID = (LONG)LoadIcon(GetModuleHandle(nullptr), MAKEINTRESOURCE(101));
    323         SetClassLong(hwnd, GCL_HICON, iconID);
     322        LONG_PTR iconID = (LONG_PTR)LoadIcon(GetModuleHandle(nullptr), MAKEINTRESOURCE(101));
     323        SetClassLongPtr(hwnd, GCLP_HICON, iconID);
    324324#endif
    325325
Note: See TracChangeset for help on using the changeset viewer.