user32: Initialize module handle to NULL for null driver.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dcae1afa05
commit
be6e6fb23c
@ -77,7 +77,8 @@ static BOOL load_desktop_driver( HWND hwnd, HMODULE *module )
|
|||||||
size = sizeof(path);
|
size = sizeof(path);
|
||||||
if (!RegQueryValueExW( hkey, driverW, NULL, NULL, (BYTE *)path, &size ))
|
if (!RegQueryValueExW( hkey, driverW, NULL, NULL, (BYTE *)path, &size ))
|
||||||
{
|
{
|
||||||
ret = !strcmpW( path, nullW ) || (*module = LoadLibraryW( path ));
|
if ((ret = !strcmpW( path, nullW ))) *module = NULL;
|
||||||
|
else ret = (*module = LoadLibraryW( path )) != NULL;
|
||||||
if (!ret) ERR( "failed to load %s\n", debugstr_w(path) );
|
if (!ret) ERR( "failed to load %s\n", debugstr_w(path) );
|
||||||
TRACE( "%s %p\n", debugstr_w(path), *module );
|
TRACE( "%s %p\n", debugstr_w(path), *module );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user