From bc9d4eb55adc2b9063aa9807138b36eff43a96d6 Mon Sep 17 00:00:00 2001 From: Jefferson Carpenter Date: Thu, 12 Mar 2020 07:48:14 +0000 Subject: [PATCH] user32: Always initialize module in load_desktop_driver. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48742 Signed-off-by: Jefferson Carpenter Signed-off-by: Alexandre Julliard --- dlls/user32/driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/driver.c b/dlls/user32/driver.c index 8f3e1b3597e..6d916c7d65d 100644 --- a/dlls/user32/driver.c +++ b/dlls/user32/driver.c @@ -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 );