Commit e2b5227b authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Fix a slightly incorrect assert.

parent 585329ed
......@@ -148,8 +148,8 @@ static WND *create_window_handle( HWND parent, HWND owner, ATOM atom,
{
struct user_thread_info *thread_info = get_user_thread_info();
assert( !thread_info->desktop );
thread_info->desktop = full_parent ? full_parent : handle;
if (!thread_info->desktop) thread_info->desktop = full_parent ? full_parent : handle;
else assert( full_parent == thread_info->desktop );
if (full_parent && !USER_Driver->pCreateDesktopWindow( thread_info->desktop ))
ERR( "failed to create desktop window\n" );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment