aboutsummaryrefslogtreecommitdiff
path: root/src/port/path.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-01-26 19:24:21 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-01-26 19:24:21 +0000
commit953570a8999cd7e8d79f9f62d98522a59d452c61 (patch)
tree93abcac36de1463a98326fdef2a882e52c06ff1d /src/port/path.c
parent9ea9892c99843e1b210ae3bbd91fbb702e6dd3ac (diff)
downloadpostgresql-953570a8999cd7e8d79f9f62d98522a59d452c61.tar.gz
postgresql-953570a8999cd7e8d79f9f62d98522a59d452c61.zip
Use SHGetFolderPath instead of SHGetSpecialFolderPath to find the
APPDATA directory on Windows. Magnus Hagander
Diffstat (limited to 'src/port/path.c')
-rw-r--r--src/port/path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port/path.c b/src/port/path.c
index 2abe6e45e7f..f49afa4ef4f 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/path.c,v 1.50 2005/01/10 00:19:51 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.50.4.1 2005/01/26 19:24:21 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -21,7 +21,7 @@
#ifdef _WIN32_IE
#undef _WIN32_IE
#endif
-#define _WIN32_IE 0x0400
+#define _WIN32_IE 0x0500
#ifdef near
#undef near
#endif
@@ -476,7 +476,7 @@ get_home_path(char *ret_path)
char tmppath[MAX_PATH];
ZeroMemory(tmppath, sizeof(tmppath));
- if (!SHGetSpecialFolderPath(NULL, tmppath, CSIDL_APPDATA, FALSE))
+ if (SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, tmppath) != S_OK)
return false;
snprintf(ret_path, MAXPGPATH, "%s/postgresql", tmppath);
return true;