#include <limits.h>
#include <assert.h>
+#ifdef __WINE__
+#define NO_MULTIMON /* winelib doesn't have this */
+#endif
+
#ifndef NO_MULTIMON
#define COMPILE_MULTIMON_STUBS
#endif
i++; /* skip next argument */
} else if (ret == 1) {
continue; /* nothing further needs doing */
- } else if (!strcmp(p, "-cleanup") ||
- !strcmp(p, "-cleanup-during-uninstall")) {
+ } else if (!strcmp(p, "-cleanup")) {
/*
* `putty -cleanup'. Remove all registry
* entries associated with PuTTY, and also find
* and delete the random seed file.
*/
char *s1, *s2;
- /* Are we being invoked from an uninstaller? */
- if (!strcmp(p, "-cleanup-during-uninstall")) {
- s1 = dupprintf("Remove saved sessions and random seed file?\n"
- "\n"
- "If you hit Yes, ALL Registry entries associated\n"
- "with %s will be removed, as well as the\n"
- "random seed file. THIS PROCESS WILL\n"
- "DESTROY YOUR SAVED SESSIONS.\n"
- "(This only affects the currently logged-in user.)\n"
- "\n"
- "If you hit No, uninstallation will proceed, but\n"
- "saved sessions etc will be left on the machine.",
- appname);
- s2 = dupprintf("%s Uninstallation", appname);
- } else {
- s1 = dupprintf("This procedure will remove ALL Registry entries\n"
- "associated with %s, and will also remove\n"
- "the random seed file. (This only affects the\n"
- "currently logged-in user.)\n"
- "\n"
- "THIS PROCESS WILL DESTROY YOUR SAVED SESSIONS.\n"
- "Are you really sure you want to continue?",
- appname);
- s2 = dupprintf("%s Warning", appname);
- }
+ s1 = dupprintf("This procedure will remove ALL Registry entries\n"
+ "associated with %s, and will also remove\n"
+ "the random seed file. (This only affects the\n"
+ "currently logged-in user.)\n"
+ "\n"
+ "THIS PROCESS WILL DESTROY YOUR SAVED SESSIONS.\n"
+ "Are you really sure you want to continue?",
+ appname);
+ s2 = dupprintf("%s Warning", appname);
if (message_box(s1, s2,
MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2,
HELPCTXID(option_cleanup)) == IDYES) {
}
}
+ if (restricted_acl) {
+ logevent(NULL, "Running with restricted process ACL");
+ }
+
start_backend();
/*
if (cset == OEM_CHARSET)
ucsdata.font_codepage = GetOEMCP();
else
- if (TranslateCharsetInfo ((DWORD *) cset, &info, TCI_SRCCHARSET))
+ if (TranslateCharsetInfo ((DWORD *)(ULONG_PTR)cset,
+ &info, TCI_SRCCHARSET))
ucsdata.font_codepage = info.ciACP;
else
ucsdata.font_codepage = -1;
*p++ = "hH\010\010"[shift_state & 3];
return p - output;
case VK_NUMPAD5:
- *p++ = shift_state ? '.' : '.';
+ *p++ = '.';
return p - output;
case VK_NUMPAD6:
*p++ = "lL\014\014"[shift_state & 3];