[PATCH v2 0/4] MR313: win32u: Finish moving raw input APIs.
Rémi Bernon (@rbernon)
wine at gitlab.winehq.org
Tue Jun 28 02:10:23 CDT 2022
Rémi Bernon (@rbernon) commented about dlls/wow64win/user.c:
> +
> + if (size != sizeof(RAWINPUTDEVICE32))
> + {
> + SetLastError( ERROR_INVALID_PARAMETER );
> + return FALSE;
> + }
> +
> + if (devices32)
> + {
> + RAWINPUTDEVICE *devices64;
> + unsigned int ret, i;
> +
> + if (!(devices64 = Wow64AllocateTemp( (*count) * sizeof(*devices64) )))
> + {
> + SetLastError( ERROR_NOT_ENOUGH_MEMORY );
> + return FALSE;
This should be ~0u.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/313#note_2841
More information about the wine-devel
mailing list