Add missing WIN_ReleaseWndPtr in WIN_CreateDesktopWindow.

This commit is contained in:
Francois Gouget 2002-05-19 22:20:31 +00:00 committed by Alexandre Julliard
parent 244462cc70
commit 69e3500950

View File

@ -794,7 +794,11 @@ BOOL WIN_CreateDesktopWindow(void)
WIN_SetRectangles( hwndDesktop, &rect, &rect );
WIN_SetStyle( hwndDesktop, WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS );
if (!USER_Driver.pCreateWindow( hwndDesktop, &cs, FALSE )) return FALSE;
if (!USER_Driver.pCreateWindow( hwndDesktop, &cs, FALSE ))
{
WIN_ReleaseWndPtr( pWndDesktop );
return FALSE;
}
pWndDesktop->flags |= WIN_NEEDS_ERASEBKGND;
WIN_ReleaseWndPtr( pWndDesktop );