On Tue, Sep 28, 2021 at 02:36:52PM +0900, Michael Paquier wrote: > I wrote that a bit too quickly. After looking at it, what we could > use to parse the handle pointer is scanint8() instead, even if that's > a bit ugly. I also found the code a bit confused regarding "fd", that > could be manipulated as an int or intptr_t, so something like the > attached should improve the situation.
As reminded by Jacob, the code is corrently correct as handles are 4 bytes on both Win32 and Win64: https://docs.microsoft.com/en-us/windows/win32/winauto/32-bit-and-64-bit-interoperability Sorry for the noise. It looks like I got confused by intptr_t :p -- Michael
signature.asc
Description: PGP signature