Index: chrome_frame/utils.cc |
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc |
index 565990b165877200c54c62a6ba158d69b853eefe..1cf9ec0b3d4a6ea6cccf7d06476d9d669d533a9a 100644 |
--- a/chrome_frame/utils.cc |
+++ b/chrome_frame/utils.cc |
@@ -415,7 +415,7 @@ uint32 GetIEMajorVersion() { |
wchar_t exe_path[MAX_PATH]; |
HMODULE mod = GetModuleHandle(NULL); |
GetModuleFileName(mod, exe_path, arraysize(exe_path) - 1); |
- std::wstring exe_name(file_util::GetFilenameFromPath(exe_path)); |
+ std::wstring exe_name = FilePath(exe_path).BaseName().value(); |
if (!LowerCaseEqualsASCII(exe_name, kIEImageName)) { |
ie_major_version = 0; |
} else { |