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 9775752695a9b7afa8ff3dbcb586fa53e203fe80..7bbce31b6c0fc53b1f6f3f85cba0905ad07458bd 100644 |
--- a/cloud_print/service/win/service_controller.cc |
+++ b/cloud_print/service/win/service_controller.cc |
@@ -300,8 +300,7 @@ |
std::vector<uint8> buffer(config_size, 0); |
QUERY_SERVICE_CONFIG* config = |
reinterpret_cast<QUERY_SERVICE_CONFIG*>(&buffer[0]); |
- if (!::QueryServiceConfig(service.Get(), config, |
- static_cast<DWORD>(buffer.size()), |
+ if (!::QueryServiceConfig(service.Get(), config, buffer.size(), |
&config_size) || |
config_size != buffer.size()) { |
return; |