On 12.02.2017 2:40, Zebediah Figura wrote:
As per MSDN: https://msdn.microsoft.com/en-us/library/windows/desktop/aa380025(v=vs.85).a...
This page covers Win32 variant, it doesn't necessary match how Win16 works, or Win32 too for that matter.
On 02/11/2017 06:30 PM, Nikolay Sivov wrote:
On 12.02.2017 2:40, Zebediah Figura wrote:
As per MSDN: https://msdn.microsoft.com/en-us/library/windows/desktop/aa380025(v=vs.85).a...
This page covers Win32 variant, it doesn't necessary match how Win16 works, or Win32 too for that matter.
I tested it with a Win16 application—without the patch, the program crashes trying to read 0xffffffff, with the patch it doesn't crash, so presumably it is checking that parameter for NULL (and not the return value of the function, for some reason.)