path: root/frontends/windows/main.c
diff options
authorVincent Sanders <>2016-10-30 12:58:43 +0000
committerVincent Sanders <>2016-10-30 12:58:43 +0000
commita2388a91cf9ceb7efb203a7b4d6d250395cdb744 (patch)
tree12c969f54fd1b1a688dfe92bc94fde13ec6958d0 /frontends/windows/main.c
parent3ecced92f335f80a372cf3fb0ab1c6f7c564cebb (diff)
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.
Diffstat (limited to 'frontends/windows/main.c')
1 files changed, 3 insertions, 0 deletions
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 */