Changeset 30013 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Jun 3, 2010 2:40:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62335
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r29594 r30013 306 306 /* 307 307 * Ask the host service to cancel all pending requests so that we can 308 * shutdown properly here. 308 * shutdown properly here. 309 309 */ 310 310 if (g_GuestControlSvcClientID) -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r29842 r30013 753 753 int rc = VINF_SUCCESS; 754 754 #ifdef RT_OS_WINDOWS 755 /* 755 /* 756 756 * If sysprep should be executed do this in the context of VBoxService, which 757 757 * (usually, if started by SCM) has administrator rights. Because of that a UI -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceCpuHotPlug.cpp
r29503 r30013 109 109 110 110 /** All possible combinations. */ 111 SYSFSCPUPATH g_aAcpiCpuPath[] = 111 SYSFSCPUPATH g_aAcpiCpuPath[] = 112 112 { 113 113 /** Level 1 */ -
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp
r29996 r30013 249 249 if (RT_FAILURE(rc)) 250 250 VBoxServiceVerbose(3, "VbglR3RegisterSharedModule failed with %d\n", rc); 251 251 252 252 end: 253 253 RTMemFree(pVersionInfo); … … 291 291 /** todo when changing this make sure VBoxService.exe is excluded! */ 292 292 char *pszDot = strrchr(ModuleInfo.szModule, '.'); 293 if ( pszDot 293 if ( pszDot 294 294 && (pszDot[1] == 'e' || pszDot[1] == 'E')) 295 295 continue; /* ignore executables for now. */ … … 374 374 PVOID pBuffer = NULL; 375 375 PRTL_PROCESS_MODULES pSystemModules; 376 376 377 377 NTSTATUS ret = ZwQuerySystemInformation(SystemModuleInformation, (PVOID)&cbBuffer, 0, &cbBuffer); 378 378 if (!cbBuffer) … … 381 381 goto skipkernelmodules; 382 382 } 383 383 384 384 pBuffer = RTMemAllocZ(cbBuffer); 385 385 if (!pBuffer) … … 392 392 goto skipkernelmodules; 393 393 } 394 394 395 395 pSystemModules = (PRTL_PROCESS_MODULES)pBuffer; 396 396 for (unsigned i = 0; i < pSystemModules->NumberOfModules; i++) … … 401 401 402 402 char *pszDot = strrchr(pSystemModules->Modules[i].FullPathName, '.'); 403 if ( pszDot 403 if ( pszDot 404 404 && (pszDot[1] == 'e' || pszDot[1] == 'E')) 405 405 continue; /* ignore executables for now. */ … … 534 534 #if defined(RT_OS_WINDOWS) && !defined(TARGET_NT4) 535 535 hNtdll = LoadLibrary("ntdll.dll"); 536 536 537 537 if (hNtdll) 538 538 ZwQuerySystemInformation = (PFNZWQUERYSYSTEMINFORMATION)GetProcAddress(hNtdll, "ZwQuerySystemInformation"); … … 559 559 * We have to use this feature as we can't simply execute all init code in our service process. 560 560 * 561 561 */ 562 562 int rc = RTSemEventMultiWait(g_PageSharingEvent, 60000); 563 563 if (*pfShutdown) -
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp
r29885 r30013 310 310 if ((pNode->fFlags & VBOXSERVICEPROPCACHEFLAG_TEMPORARY) == 0) 311 311 VBoxServiceWritePropF(pCache->uClientID, pNode->pszName, pNode->pszValueReset); 312 312 313 313 AssertPtr(pNode->pszName); 314 314 RTStrFree(pNode->pszName); … … 316 316 RTStrFree(pNode->pszValueReset); 317 317 pNode->fFlags = 0; 318 318 319 319 PVBOXSERVICEVEPROPCACHEENTRY pNext = RTListNodeGetNext(&pNode->Node, VBOXSERVICEVEPROPCACHEENTRY, Node); 320 320 RTListNodeRemove(&pNode->Node); 321 321 RTMemFree(pNode); 322 322 323 323 if (pNext && RTListNodeIsLast(&pCache->ListEntries, &pNext->Node)) 324 324 break; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r29872 r30013 384 384 &enmOwnerType)) 385 385 { 386 VBoxServiceError("VMInfo/Users: Failed looking up account info for user '%ls': %ld!\n", 386 VBoxServiceError("VMInfo/Users: Failed looking up account info for user '%ls': %ld!\n", 387 387 a_pUserInfo->wszUser, GetLastError()); 388 388 } … … 437 437 } 438 438 } 439 } 439 } 440 440 441 441 LsaFreeReturnBuffer(pSessionData); -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r29861 r30013 269 269 VBoxServicePropCacheUpdate(&g_VMInfoPropCache, "/VirtualBox/GuestInfo/OS/NoLoggedInUsers", cUsersInList == 0 ? "true" : "false"); 270 270 g_cVMInfoLoggedInUsers = cUsersInList; 271 } 271 } 272 272 if (pszUserList) 273 273 RTStrFree(pszUserList);
Note:
See TracChangeset
for help on using the changeset viewer.