Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: cloud_print/service/win/service_controller.cc

Issue 12989026: Stops service between status check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/win/service_controller.cc
diff --git a/cloud_print/service/win/service_controller.cc b/cloud_print/service/win/service_controller.cc
index b9a749d423a12268e075591ec8d4d8bbfad7bbf7..428f2829b0a83c8cecbf509355c574ac40b7af78 100644
--- a/cloud_print/service/win/service_controller.cc
+++ b/cloud_print/service/win/service_controller.cc
@@ -106,6 +106,7 @@ HRESULT ServiceController::StopService() {
while (::QueryServiceStatus(service, &status) &&
status.dwCurrentState > SERVICE_STOPPED) {
Sleep(500);
+ ::ControlService(service, SERVICE_CONTROL_STOP, &status);
}
return S_OK;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698