user32: Always initialize module in load_desktop_driver.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48742
Signed-off-by: Jefferson Carpenter <jeffersoncarpenter2@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jefferson Carpenter 2020-03-12 07:48:14 +00:00 committed by Alexandre Julliard
parent 2db87b733f
commit bc9d4eb55a
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ static BOOL load_desktop_driver( HWND hwnd, HMODULE *module )
else
{
size = sizeof(driver_load_error);
*module = NULL;
RegQueryValueExA( hkey, "DriverError", NULL, NULL, (BYTE *)driver_load_error, &size );
}
RegCloseKey( hkey );