Jump to content

Crash Win32 Chibios1760 + ugfx


cryptobeat

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...