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

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

Issue 1408623002: Add cloud_print to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 2 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
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 7bbce31b6c0fc53b1f6f3f85cba0905ad07458bd..9775752695a9b7afa8ff3dbcb586fa53e203fe80 100644
--- a/cloud_print/service/win/service_controller.cc
+++ b/cloud_print/service/win/service_controller.cc
@@ -300,7 +300,8 @@ void ServiceController::UpdateState() {
std::vector<uint8> buffer(config_size, 0);
QUERY_SERVICE_CONFIG* config =
reinterpret_cast<QUERY_SERVICE_CONFIG*>(&buffer[0]);
- if (!::QueryServiceConfig(service.Get(), config, buffer.size(),
+ if (!::QueryServiceConfig(service.Get(), config,
+ static_cast<DWORD>(buffer.size()),
&config_size) ||
config_size != buffer.size()) {
return;

Powered by Google App Engine
This is Rietveld 408576698