Changeset 40054 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Feb 9, 2012 3:37:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp
r38411 r40054 242 242 } 243 243 VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule %s %s base=%p size=%x cregions=%d\n", pModule->Info.szModule, pModule->szFileVersion, pModule->Info.modBaseAddr, pModule->Info.modBaseSize, idxRegion); 244 #ifdef RT_ARCH_X86 245 int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR32)pModule->Info.modBaseAddr, 244 int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (uintptr_t)pModule->Info.modBaseAddr, 246 245 pModule->Info.modBaseSize, idxRegion, aRegions); 247 #else248 int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR64)pModule->Info.modBaseAddr,249 pModule->Info.modBaseSize, idxRegion, aRegions);250 #endif251 252 // AssertRC(rc);253 246 if (RT_FAILURE(rc)) 254 VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule failed with % d\n", rc);247 VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule failed with %Rrc\n", rc); 255 248 256 249 end: … … 293 286 do 294 287 { 295 /** todo when changing this make sure VBoxService.exe is excluded! */288 /** @todo when changing this make sure VBoxService.exe is excluded! */ 296 289 char *pszDot = strrchr(ModuleInfo.szModule, '.'); 297 290 if ( pszDot … … 505 498 506 499 /* Dereference module in the hypervisor. */ 507 if ( !pfUnregister 508 || *pfUnregister == true) 509 { 510 #ifdef RT_ARCH_X86 511 int rc = VbglR3UnregisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR32)pModule->Info.modBaseAddr, pModule->Info.modBaseSize); 512 #else 513 int rc = VbglR3UnregisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR64)pModule->Info.modBaseAddr, pModule->Info.modBaseSize); 514 #endif 500 if ( !pfUnregister 501 || *pfUnregister) 502 { 503 int rc = VbglR3UnregisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, 504 (uintptr_t)pModule->Info.modBaseAddr, pModule->Info.modBaseSize); 515 505 AssertRC(rc); 516 506 }
Note:
See TracChangeset
for help on using the changeset viewer.