X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0b4f0bc0bdc90f7c0d63c94d18059612679f3fc4..10135a55c1d5f8d55ae5edbcd5544f676c83a693:/window.c?ds=sidebyside diff --git a/window.c b/window.c index 78cb1e09..11e199d3 100644 --- a/window.c +++ b/window.c @@ -406,6 +406,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) cfg.host[sizeof(cfg.host) - 1] = '\0'; got_host = 1; } + } else { + cmdline_error("unknown option \"%s\"", p); } } } @@ -2997,7 +2999,7 @@ void do_cursor(Context ctx, int x, int y, char *text, int len, /* This function gets the actual width of a character in the normal font. */ -int CharWidth(Context ctx, int uc) { +int char_width(Context ctx, int uc) { HDC hdc = ctx; int ibuf = 0;