Changeset 11115 for code/trunk/src/libraries
- Timestamp:
- Feb 14, 2016, 6:08:13 PM (9 years ago)
- Location:
- code/trunk/src/libraries
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/Core.cc
r11071 r11115 433 433 unsigned int coreNr = limitToCPU - 1; 434 434 // Get the current process core mask 435 DWORDprocMask;436 DWORDsysMask;435 ULONG_PTR procMask; 436 ULONG_PTR sysMask; 437 437 # if _MSC_VER >= 1400 && defined (_M_X64) 438 438 GetProcessAffinityMask(GetCurrentProcess(), (PDWORD_PTR)&procMask, (PDWORD_PTR)&sysMask); -
code/trunk/src/libraries/core/GraphicsManager.cc
r11085 r11115 320 320 HWND hwnd; 321 321 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); 324 324 #endif 325 325 -
code/trunk/src/libraries/util/SignalHandler.cc
r11071 r11115 722 722 // Now print information about where the fault occured 723 723 output += " at location " + SignalHandler::pointerToString(pExceptionRecord->ExceptionAddress); 724 if ((hModule = (HMODULE) SignalHandler::getModuleBase( (DWORD)pExceptionRecord->ExceptionAddress)) && GetModuleFileName(hModule, szModule, MAX_PATH))724 if ((hModule = (HMODULE) SignalHandler::getModuleBase(pExceptionRecord->ExceptionAddress)) && GetModuleFileName(hModule, szModule, MAX_PATH)) 725 725 { 726 726 output += " in module "; … … 748 748 /// Retrieves the base address of the module that contains the specified address. 749 749 // Code from Dr. Mingw by Jos\E9 Fonseca 750 /* static */ DWORD SignalHandler::getModuleBase(DWORD dwAddress)750 /* static */ PVOID SignalHandler::getModuleBase(LPCVOID dwAddress) 751 751 { 752 752 MEMORY_BASIC_INFORMATION Buffer; 753 753 754 return VirtualQuery( (LPCVOID) dwAddress, &Buffer, sizeof(Buffer)) ? (DWORD)Buffer.AllocationBase : 0;754 return VirtualQuery(dwAddress, &Buffer, sizeof(Buffer)) ? Buffer.AllocationBase : 0; 755 755 } 756 756 -
code/trunk/src/libraries/util/SignalHandler.h
r11071 r11115 120 120 121 121 static std::string getModuleName(const std::string& path); 122 static DWORD getModuleBase(DWORD dwAddress);122 static PVOID getModuleBase(LPCVOID dwAddress); 123 123 124 124 template <typename T>
Note: See TracChangeset
for help on using the changeset viewer.