aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/w32.c b/src/w32.c
index b50cd13517d..15903dbceb3 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -1612,7 +1612,6 @@ init_environment (char ** argv)
1612 LPBYTE lpval; 1612 LPBYTE lpval;
1613 DWORD dwType; 1613 DWORD dwType;
1614 char locale_name[32]; 1614 char locale_name[32];
1615 struct stat ignored;
1616 char default_home[MAX_PATH]; 1615 char default_home[MAX_PATH];
1617 int appdata = 0; 1616 int appdata = 0;
1618 1617
@@ -1653,7 +1652,7 @@ init_environment (char ** argv)
1653 /* For backwards compatibility, check if a .emacs file exists in C:/ 1652 /* For backwards compatibility, check if a .emacs file exists in C:/
1654 If not, then we can try to default to the appdata directory under the 1653 If not, then we can try to default to the appdata directory under the
1655 user's profile, which is more likely to be writable. */ 1654 user's profile, which is more likely to be writable. */
1656 if (stat ("C:/.emacs", &ignored) < 0) 1655 if (check_existing ("C:/.emacs"))
1657 { 1656 {
1658 HRESULT profile_result; 1657 HRESULT profile_result;
1659 /* Dynamically load ShGetFolderPath, as it won't exist on versions 1658 /* Dynamically load ShGetFolderPath, as it won't exist on versions