summaryrefslogtreecommitdiffstats
path: root/base/base_paths_win.cc
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-07 20:23:09 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-07 20:23:09 +0000
commit09ad1e629a88f99d2e93797304f4a6060915e228 (patch)
treee69ebeea9d6aa79cf134bc892e3b0573abe10c86 /base/base_paths_win.cc
parente82b706db2d3da13746b66fd5ab7d5dd38fab17e (diff)
downloadchromium_src-09ad1e629a88f99d2e93797304f4a6060915e228.zip
chromium_src-09ad1e629a88f99d2e93797304f4a6060915e228.tar.gz
chromium_src-09ad1e629a88f99d2e93797304f4a6060915e228.tar.bz2
Improve PathServiceTest test by verifying that the returned path exists.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r--base/base_paths_win.cc6
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)))