From a2388a91cf9ceb7efb203a7b4d6d250395cdb744 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 30 Oct 2016 12:58:43 +0000 Subject: Rationalise the use of win32 application instance handle use The use of the application instance handle global variable was inconsistent throughout the windows frontend. By rationalising the passing of these handles it showed that some of the toolbar and throbber parent handles were also setup wrong giving odd offset behaviour. All these issues have been addressed and the throbber is now in the correct position. --- frontends/windows/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frontends/windows/main.c') diff --git a/frontends/windows/main.c b/frontends/windows/main.c index 7b93c3b63..7c94c0632 100644 --- a/frontends/windows/main.c +++ b/frontends/windows/main.c @@ -303,6 +303,9 @@ WinMain(HINSTANCE hInstance, HINSTANCE hLastInstance, LPSTR lpcli, int ncmd) die("NetSurf operation table registration failed"); } + /* Save the application-instance handle. */ + hinst = hInstance; + setbuf(stderr, NULL); /* Construct a unix style argc/argv */ -- cgit v1.2.3