summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/virtual_driver/win/port_monitor/port_monitor.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
index 001eead..d587eef 100644
--- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
+++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
@@ -634,12 +634,12 @@ HRESULT WINAPI DllRegisterServer(void) {
if (!cloud_print::CanRegister()) {
return E_ACCESSDENIED;
}
- MONITOR_INFO_2 monitor_info = {0};
- // YUCK!!! I can either copy the constant, const_cast, or define my own
- // MONITOR_INFO_2 that will take const strings.
- monitor_info.pDLLName = const_cast<LPWSTR>(cloud_print::kPortMonitorDllName);
- monitor_info.pName = const_cast<LPWSTR>(cloud_print::kPortMonitorDllName);
- if (AddMonitor(NULL, 2, reinterpret_cast<BYTE*>(&monitor_info))) {
+ MONITOR_INFO_2 monitor_info = {0};
+ // YUCK!!! I can either copy the constant, const_cast, or define my own
+ // MONITOR_INFO_2 that will take const strings.
+ monitor_info.pDLLName = const_cast<LPWSTR>(cloud_print::kPortMonitorDllName);
+ monitor_info.pName = const_cast<LPWSTR>(cloud_print::kPortMonitorDllName);
+ if (AddMonitor(NULL, 2, reinterpret_cast<BYTE*>(&monitor_info))) {
return S_OK;
}
DWORD error_code = GetLastError();
@@ -651,9 +651,9 @@ HRESULT WINAPI DllUnregisterServer(void) {
if (!cloud_print::CanRegister()) {
return E_ACCESSDENIED;
}
- if (DeleteMonitor(NULL,
- NULL,
- const_cast<LPWSTR>(cloud_print::kPortMonitorDllName))) {
+ if (DeleteMonitor(NULL,
+ NULL,
+ const_cast<LPWSTR>(cloud_print::kPortMonitorDllName))) {
return S_OK;
}
DWORD error_code = GetLastError();