Changeset 67623 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 27, 2017 8:04:55 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116392
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c
r67622 r67623 2289 2289 2290 2290 hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); 2291 2292 2291 if (hSCM != NULL) 2293 2292 { … … 2328 2327 2329 2328 if ( dirLen + moduleLen + 2 >= MAX_PATH + QUOTES_SPACE 2330 || !RT_SUCCESS(RTUtf16Copy(szFilePath + 1, MAX_PATH + QUOTES_SPACE - 1, wszVBoxDir)) 2329 || !RT_SUCCESS(RTUtf16Copy(szFilePath + 1, MAX_PATH + QUOTES_SPACE - 1, wszVBoxDir)) 2331 2330 || !RT_SUCCESS(RTUtf16Copy(szFilePath + dirLen + 1, MAX_PATH + QUOTES_SPACE - dirLen - 1, wszServiceModule))) 2332 2331 { … … 2385 2384 2386 2385 hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); 2387 2388 2386 if (hSCM == NULL) 2389 2387 { … … 2394 2392 2395 2393 hService = OpenService(hSCM, wszServiceName, SERVICE_STOP | DELETE); 2396 2397 2394 if (hService == NULL) 2398 2395 { … … 2408 2405 { 2409 2406 DWORD dwError = GetLastError(); 2410 if (!( (dwError == ERROR_SERVICE_NOT_ACTIVE) ||2411 (dwError == ERROR_SERVICE_CANNOT_ACCEPT_CTRL2412 && status.dwCurrentState == SERVICE_STOP_PENDING)))2407 if (!( dwError == ERROR_SERVICE_NOT_ACTIVE 2408 || ( dwError == ERROR_SERVICE_CANNOT_ACCEPT_CTRL 2409 && status.dwCurrentState == SERVICE_STOP_PENDING))) 2413 2410 { 2414 2411 CloseServiceHandle(hSCM);
Note:
See TracChangeset
for help on using the changeset viewer.