Diff

Differences From Artifact [4ad88be939]:

To Artifact [8cae84ec75]:


182
183
184
185
186
187
188






189

190
191









192
193
194
195
196
197
198
	    if (!do_config()) {
		WSACleanup();
		return 0;
	    }
	}
    }







    back = (cfg.protocol == PROT_SSH ? &ssh_backend : 

	    cfg.protocol == PROT_TELNET ? &telnet_backend :
	    &raw_backend);










    ldisc = (cfg.ldisc_term ? &ldisc_term : &ldisc_simple);

    if (!prev) {
	wndclass.style         = 0;
	wndclass.lpfnWndProc   = WndProc;
	wndclass.cbClsExtra    = 0;







>
>
>
>
>
>
|
>
|
|
>
>
>
>
>
>
>
>
>







182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
	    if (!do_config()) {
		WSACleanup();
		return 0;
	    }
	}
    }

    /*
     * Select protocol. This is farmed out into a table in a
     * separate file to enable an ssh-free variant.
     */
    {
        int i;
        back = NULL;
        for (i = 0; backends[i].backend != NULL; i++)
            if (backends[i].protocol == cfg.protocol) {
                back = backends[i].backend;
                break;
            }
        if (back == NULL) {
            MessageBox(NULL, "Unsupported protocol number found",
                       "PuTTY Internal Error", MB_OK | MB_ICONEXCLAMATION);
            WSACleanup();
            return 1;
        }
    }

    ldisc = (cfg.ldisc_term ? &ldisc_term : &ldisc_simple);

    if (!prev) {
	wndclass.style         = 0;
	wndclass.lpfnWndProc   = WndProc;
	wndclass.cbClsExtra    = 0;