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:24 +0000 In-Reply-To: References: Rémi Bernon (@rbernon) commented about dlls/wow64win/user.c: > + > + if (size != sizeof(RAWINPUTDEVICELIST32)) > + { > + SetLastError( ERROR_INVALID_PARAMETER ); > + return ~0u; > + } > + > + if (devices32) > + { > + RAWINPUTDEVICELIST *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_2842