cryptobeat Posted July 20, 2017 Report Share Posted July 20, 2017 Hi I'm getting crash running under Simulator Chibios 1760 + ugfx. Works fine under Chibios 1615 + ugfx Please see attached project. Crash happens inside this file: gdisp_lld_Win32.c: mousemove: if (priv->capfn) ///////capfn must be null but under 1760 it 's not priv->capfn(hWnd, g, btns, (coord_t)LOWORD(lParam), (coord_t)HIWORD(lParam)); It crashes because it looks like mouse structure initialization overruns the memory in here setting value of the capfn in mouse structure #if GFX_USE_GINPUT && GINPUT_NEED_MOUSE priv->mouseenabled = hWndParent ? FALSE : TRUE; priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g); #endif Any advise? Thank you! BugReport.zip Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted July 20, 2017 Report Share Posted July 20, 2017 Hi, Thank you for bringing this to our attention. I'll leave to that to @inmarket as he's the one who wrote the win32 driver(s). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now