[PATCH] storage.dll16: Set OpenStorage/OpenStream output to NULL on failure.

Zebediah Figura z.figura12 at gmail.com
Sat Feb 11 20:04:07 CST 2017


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).aspx
>>
> 
> 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.)




More information about the wine-devel mailing list