|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.301 2005/01/14 00:25:56 momjian Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.302 2005/01/26 19:24:02 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
|
38 | 38 | #ifdef_WIN32_IE
|
39 | 39 | #undef _WIN32_IE
|
40 | 40 | #endif
|
41 |
| -#define_WIN32_IE0x0400 |
| 41 | +#define_WIN32_IE0x0500 |
42 | 42 | #ifdefnear
|
43 | 43 | #undef near
|
44 | 44 | #endif
|
@@ -3296,7 +3296,7 @@ pqGetHomeDirectory(char *buf, int bufsize)
|
3296 | 3296 | chartmppath[MAX_PATH];
|
3297 | 3297 |
|
3298 | 3298 | ZeroMemory(tmppath,sizeof(tmppath));
|
3299 |
| -if (!SHGetSpecialFolderPath(NULL,tmppath,CSIDL_APPDATA, FALSE)) |
| 3299 | +if (SHGetFolderPath(NULL,CSIDL_APPDATA,NULL,0,tmppath)!=S_OK) |
3300 | 3300 | return false;
|
3301 | 3301 | snprintf(buf,bufsize,"%s/postgresql",tmppath);
|
3302 | 3302 | return true;
|
|