win32u: Return client menu name from NtUserUnregisterClass.

Spotted by Esme Povirk.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2022-03-27 17:34:40 +03:00 committed by Alexandre Julliard
parent 67b43b58bd
commit f1d1d88c9e
1 changed files with 1 additions and 0 deletions

View File

@ -481,6 +481,7 @@ BOOL WINAPI NtUserUnregisterClass( UNICODE_STRING *name, HINSTANCE instance,
list_remove( &class->entry );
if (class->hbrBackground > (HBRUSH)(COLOR_GRADIENTINACTIVECAPTION + 1))
NtGdiDeleteObjectApp( class->hbrBackground );
*client_menu_name = class->menu_name;
NtUserDestroyCursor( class->hIconSmIntern, 0 );
free( class );
user_unlock();