summaryrefslogtreecommitdiffstats
path: root/cloud_print/virtual_driver
diff options
context:
space:
mode:
authorcsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 22:59:35 +0000
committercsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 22:59:35 +0000
commit3bc194b1a8b927481f43338dab4a479bd0c72f1b (patch)
tree25e5939dd7f7873221e61ec3bc252540461b94f3 /cloud_print/virtual_driver
parenta72acc01b885f86f9b8759bbb61176f54199c059 (diff)
downloadchromium_src-3bc194b1a8b927481f43338dab4a479bd0c72f1b.zip
chromium_src-3bc194b1a8b927481f43338dab4a479bd0c72f1b.tar.gz
chromium_src-3bc194b1a8b927481f43338dab4a479bd0c72f1b.tar.bz2
Fix corrupt line-endings on port_monitor.cc. (Step 1, remove line-endings property)
BUG=none TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6880080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print/virtual_driver')
-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();