diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-09-28 01:44:24 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-09-28 01:44:24 +1000 |
commit | d4eaafce109dfe2088ef2a8346b74694ca246af0 (patch) | |
tree | e69e5391440774eec277ce222982f30553af4867 /drivers/multiple/Win32 | |
parent | bbdc236967ecff9095e04f3a47dd0c358b691640 (diff) | |
download | uGFX-d4eaafce109dfe2088ef2a8346b74694ca246af0.tar.gz uGFX-d4eaafce109dfe2088ef2a8346b74694ca246af0.tar.bz2 uGFX-d4eaafce109dfe2088ef2a8346b74694ca246af0.zip |
Fix occassional startup crash under Win32 with newmouse
Diffstat (limited to 'drivers/multiple/Win32')
-rw-r--r-- | drivers/multiple/Win32/gdisp_lld_Win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/multiple/Win32/gdisp_lld_Win32.c b/drivers/multiple/Win32/gdisp_lld_Win32.c index 875c7ad1..ecb100f6 100644 --- a/drivers/multiple/Win32/gdisp_lld_Win32.c +++ b/drivers/multiple/Win32/gdisp_lld_Win32.c @@ -496,16 +496,16 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { while(!(((volatile GDisplay *)g)->flags & GDISP_FLG_READY)) Sleep(1); - sprintf(buf, APP_NAME " - %u", g->systemdisplay+1); - SetWindowText(priv->hwnd, buf); - ShowWindow(priv->hwnd, SW_SHOW); - UpdateWindow(priv->hwnd); - // Create the associated mouse #if GINPUT_NEED_MOUSE priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g); #endif + sprintf(buf, APP_NAME " - %u", g->systemdisplay+1); + SetWindowText(priv->hwnd, buf); + ShowWindow(priv->hwnd, SW_SHOW); + UpdateWindow(priv->hwnd); + return TRUE; } |