From 5c7ab732a23885c587443b4333f9a0eb2be60f2d 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 --- dlls/user32/driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/driver.c b/dlls/user32/driver.c index 8f3e1b3597..6d916c7d65 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 ); -- 2.23.0