]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/window.c
Revamp net_pending_errors using toplevel callbacks.
[PuTTY.git] / windows / window.c
index 77e4e9eb61f729998869a8a184b00aa4abcafa86..b5a18e5af1d6cc5ea378c799e0d25a774f50d7d2 100644 (file)
@@ -874,8 +874,6 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
 
        if (pending_netevent)
            enact_pending_netevent();
-
-       net_pending_errors();
     }
 
     finished:
@@ -2349,7 +2347,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
 
                InvalidateRect(hwnd, NULL, TRUE);
                reset_window(init_lvl);
-               net_pending_errors();
 
                conf_free(prev_conf);
            }
@@ -2412,7 +2409,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                    break;
                if (back)
                    back->special(backhandle, specials[i].code);
-               net_pending_errors();
            }
        }
        break;
@@ -2705,7 +2701,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
        if (WSAGETSELECTEVENT(lParam) != FD_READ)
            enact_pending_netevent();
 
-       net_pending_errors();
        return 0;
       case WM_SETFOCUS:
        term_set_focus(term, TRUE);
@@ -3087,7 +3082,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                }
            }
        }
-       net_pending_errors();
        return 0;
       case WM_INPUTLANGCHANGE:
        /* wParam == Font number */