Index: remoting/host/sas_injector_win.cc |
diff --git a/remoting/host/sas_injector_win.cc b/remoting/host/sas_injector_win.cc |
index a33677048a7a757a4da18301292c46281eeb1ddb..0bf453f6a69c63f6d8f7e0e7d00eceb55346561a 100644 |
--- a/remoting/host/sas_injector_win.cc |
+++ b/remoting/host/sas_injector_win.cc |
@@ -131,14 +131,14 @@ bool SasInjectorWin::InjectSas() { |
// Load sas.dll. The library is expected to be in the same folder as this |
// binary. |
if (!sas_dll_.is_valid()) { |
- FilePath exe_path; |
- if (!PathService::Get(base::FILE_EXE, &exe_path)) { |
+ FilePath dir_path; |
+ if (!PathService::Get(base::DIR_EXE, &dir_path)) { |
LOG(ERROR) << "Failed to get the executable file name."; |
return false; |
} |
- sas_dll_.Reset(base::LoadNativeLibrary( |
- exe_path.DirName().Append(kSasDllFileName), NULL)); |
+ sas_dll_.Reset(base::LoadNativeLibrary(dir_path.Append(kSasDllFileName), |
+ NULL)); |
} |
if (!sas_dll_.is_valid()) { |
LOG(ERROR) << "Failed to load '" << kSasDllFileName << "'"; |