What to do when size of the struct differs on 32 and 64 bit?

Dmitry Timoshkov dmitry at codeweavers.com
Wed Aug 13 06:02:13 CDT 2008


"Vitaliy Margolen" <wine-devel at kievinfo.com> wrote:

> While debugging some force-feedback issues ran into an interesting problem. 
> The size of one struct from include/linux differs between 32-bit and 64-bit. 
> That wouldn't be a major problem except that size is the part of the ioctl() 
> request. Which results in EINVAL.

64-bit kernel should take care of translating the parameters between native
64-bit and emulated 32-bit modes. If that's not the case that's a kernel
bug, and should be reported appropriately.

-- 
Dmitry.



More information about the wine-devel mailing list