user32: Always initialize graphics_driver in load_desktop_driver.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-09-29 14:07:02 +02:00 committed by Alexandre Julliard
parent 773c20ffd1
commit 360510da94
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ static BOOL load_desktop_driver( HWND hwnd, HMODULE *module )
static const USER_DRIVER *load_driver(void)
{
void *ptr;
HMODULE graphics_driver;
HMODULE graphics_driver = NULL;
USER_DRIVER *driver, *prev;
driver = HeapAlloc( GetProcessHeap(), 0, sizeof(*driver) );