diff options
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r-- | base/base_paths_win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc index 9afd875..fe3e1df 100644 --- a/base/base_paths_win.cc +++ b/base/base_paths_win.cc @@ -32,7 +32,9 @@ #include <shlobj.h> #include "base/file_util.h" +#include "base/logging.h" #include "base/path_service.h" +#include "base/win_util.h" // This is here for the sole purpose of looking up the corresponding HMODULE. static int handle_lookup = 0; @@ -106,6 +108,10 @@ bool PathProviderWin(int key, std::wstring* result) { cur = system_buffer; break; case base::DIR_LOCAL_APP_DATA_LOW: + if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { + NOTREACHED(); + return false; + } // TODO(nsylvain): We should use SHGetKnownFolderPath instead. Bug 1281128 if (FAILED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, system_buffer))) |