#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include "putty.h"
+#include "winstuff.h"
#include "storage.h"
#include "win_res.h"
MSG msg;
int guess_width, guess_height;
- putty_inst = inst;
+ hinst = inst;
flags = FLAG_VERBOSE | FLAG_INTERACTIVE;
winsock_ver = MAKEWORD(1, 1);
InitCommonControls();
+ /* Ensure a Maximize setting in Explorer doesn't maximise the
+ * config box. */
+ defuse_showwindow();
+
/*
* Process the command line.
*/
* An initial @ means to activate a saved session.
*/
if (*p == '@') {
+ int i = strlen(p);
+ while (i > 1 && isspace(p[i-1]))
+ i--;
+ p[i] = '\0';
do_defaults (p+1, &cfg);
if (!*cfg.host && !do_config()) {
WSACleanup();