64 bit.
(DesktopSetupPage::OnActivate): Check for "Cygwin64 Terminal" link on
64 bit.
* main.cc (main_display): Avoid compiler warning on 64 bit.
* mount.cc (from_fstab): Take 2nd parameter as const by reference to
avoid potential crash due to scope issue.
+2013-03-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * desktop.cc (do_desktop_setup): Install "Cygwin64 Terminal" link on
+ 64 bit.
+ (DesktopSetupPage::OnActivate): Check for "Cygwin64 Terminal" link on
+ 64 bit.
+ * main.cc (main_display): Avoid compiler warning on 64 bit.
+ * mount.cc (from_fstab): Take 2nd parameter as const by reference to
+ avoid potential crash due to scope issue.
+
2013-03-14 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* configure.ac: Remove check for libmingw32.
2013-03-14 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* configure.ac: Remove check for libmingw32.
target = backslash (cygpath ("/bin/mintty"));
if (root_menu)
target = backslash (cygpath ("/bin/mintty"));
if (root_menu)
- start_menu ("Cygwin Terminal", target, "-i /Cygwin-Terminal.ico -");
+ start_menu (is_64bit ? "Cygwin64 Terminal" : "Cygwin Terminal",
+ target, "-i /Cygwin-Terminal.ico -");
- desktop_icon ("Cygwin Terminal", target, "-i /Cygwin-Terminal.ico -");
+ desktop_icon (is_64bit ? "Cygwin64 Terminal" : "Cygwin Terminal",
+ target, "-i /Cygwin-Terminal.ico -");
}
static int da[] = { IDC_ROOT_DESKTOP, 0 };
}
static int da[] = { IDC_ROOT_DESKTOP, 0 };
- root_menu = check_startmenu ("Cygwin Terminal",
+ root_menu = check_startmenu (is_64bit ? "Cygwin64 Terminal"
+ : "Cygwin Terminal",
backslash (cygpath ("/bin/mintty")));
}
backslash (cygpath ("/bin/mintty")));
}
- root_desktop = check_desktop ("Cygwin Terminal",
+ root_desktop = check_desktop (is_64bit ? "Cygwin64 Terminal"
+ : "Cygwin Terminal",
backslash (cygpath ("/bin/mintty")));
}
}
backslash (cygpath ("/bin/mintty")));
}
}
if (res)
{
char buf[256];
if (res)
{
char buf[256];
- sprintf (buf, "CoCreateInstance failed with error %p.\n"
+ sprintf (buf, "CoCreateInstance failed with error 0x%x.\n"
"Setup will not be able to create Cygwin Icons\n"
"Setup will not be able to create Cygwin Icons\n"
- "in the Start Menu or on the Desktop.", (void *) res);
+ "in the Start Menu or on the Desktop.", (int) res);
MessageBox (NULL, buf, "Cygwin Setup", MB_OK);
}
MessageBox (NULL, buf, "Cygwin Setup", MB_OK);
}
#define BUFSIZE 65536
static bool
#define BUFSIZE 65536
static bool
-from_fstab (mnt *m, std::string in_path)
+from_fstab (mnt *m, const std::string& in_path)
{
char buf[BUFSIZE];
WCHAR path[in_path.size () + 7];
{
char buf[BUFSIZE];
WCHAR path[in_path.size () + 7];