[PATCH 14/14] winex11.drv: Remove unsuseful failed label
(X11DRV_DestroyWindow is also called by WIN_DestroyWindow)
Pierre d'Herbemont
pdherbemont at free.fr
Sun Jan 21 17:38:34 CST 2007
---
dlls/winex11.drv/window.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
-------------- next part --------------
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 7894856..b8797ca 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -1018,7 +1018,7 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CRE
/* create an X window if it's a top level window */
if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow())
{
- if (!create_whole_window( display, data, cs->style )) goto failed;
+ if (!create_whole_window( display, data, cs->style )) return FALSE;
}
else if (hwnd == GetDesktopWindow())
{
@@ -1072,10 +1072,6 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CRE
systray_dock_window( display, data );
return TRUE;
-
- failed:
- X11DRV_DestroyWindow( hwnd );
- return FALSE;
}
More information about the wine-patches
mailing list