From: "Rémi Bernon (@rbernon)" Subject: Re: [PATCH v2 0/4] MR313: win32u: Finish moving raw input APIs. Message-Id: Date: Tue, 28 Jun 2022 07:10:23 +0000 In-Reply-To: References: Rémi Bernon (@rbernon) commented about dlls/wow64win/user.c: > > return NtUserRegisterRawInputDevices( devices64, count, sizeof(*devices64) ); > } > + > +NTSTATUS WINAPI wow64_NtUserGetRegisteredRawInputDevices( UINT *args ) > +{ > + RAWINPUTDEVICE32 *devices32 = get_ptr( &args ); > + UINT *count = get_ptr( &args ); > + UINT size = get_ulong( &args ); > + > + if (size != sizeof(RAWINPUTDEVICE32)) > + { > + SetLastError( ERROR_INVALID_PARAMETER ); > + return FALSE; This should be ~0u. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/313#note_2840