Index: chrome_frame/utils.cc |
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc |
index 565990b165877200c54c62a6ba158d69b853eefe..11e6fd880be553ed030ed71344fb4f0ef9ce941b 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().ToWStringHack(); |
evanm
2010/12/23 18:13:33
Since this is Windows-specific code, could you use
tfarina
2010/12/23 18:27:00
Done.
|
if (!LowerCaseEqualsASCII(exe_name, kIEImageName)) { |
ie_major_version = 0; |
} else { |