Oops, n/m, I had built 32-bit Windows. On 64-bit, the failure comes from RtlInstallFunctionTableCallback(). In theory this takes a DWORD which the docs say is an uint32_t, but I guess there is an undocumented requirement that it's <= INT32_MAX. Oh well, at least now I have a better reason to record in a comment.
Bug 1542292 Comment 9 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Oops, n/m, I had built 32-bit Windows. On 64-bit, I can repro and the failure comes from RtlInstallFunctionTableCallback(). In theory this takes a DWORD which the docs say is an uint32_t, but I guess there is an undocumented requirement that it's <= INT32_MAX. Oh well, at least now I have a better reason to record in a comment.