Add missing WIN_ReleaseWndPtr in WIN_CreateDesktopWindow.
This commit is contained in:
parent
244462cc70
commit
69e3500950
|
@ -794,7 +794,11 @@ BOOL WIN_CreateDesktopWindow(void)
|
||||||
WIN_SetRectangles( hwndDesktop, &rect, &rect );
|
WIN_SetRectangles( hwndDesktop, &rect, &rect );
|
||||||
WIN_SetStyle( hwndDesktop, WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS );
|
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;
|
pWndDesktop->flags |= WIN_NEEDS_ERASEBKGND;
|
||||||
WIN_ReleaseWndPtr( pWndDesktop );
|
WIN_ReleaseWndPtr( pWndDesktop );
|
||||||
|
|
Loading…
Reference in New Issue