KERNEL: check for NULL in LoadModule16

Andreas Mohr andi at
Mon Aug 29 13:20:11 CDT 2005


On Mon, Aug 29, 2005 at 12:37:31PM -0500, Alex Villací­s Lasso wrote:
> An old copy of Print Shop Deluxe Companion manages to supply a NULL as a 
> name to be loaded by LoadLibrary16 --> LoadModule16 --> SIGSEGV. This 
> patch adds a check to return ERROR_READ_FAULT instead of crashing.
> Alex Villacís Lasso
> Changelog:
> * Add a NULL check in LoadModule16

Are you sure that Windows does that thing?

Somehow I really cannot imagine that during all these years this one has gone

(and is ERROR_READ_FAULT the correct error to return here?)


Andreas Mohr

More information about the wine-devel mailing list