Ken Thomases : wined3d: Simplify the error path of context_update_window() .

Alexandre Julliard julliard at winehq.org
Mon Mar 24 15:59:47 CDT 2014


Module: wine
Branch: master
Commit: 90d7f3e03f584f15f94fa7c75b51342f725d2f1e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=90d7f3e03f584f15f94fa7c75b51342f725d2f1e

Author: Ken Thomases <ken at codeweavers.com>
Date:   Sun Mar 23 22:45:50 2014 -0500

wined3d: Simplify the error path of context_update_window().

---

 dlls/wined3d/context.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 73e2c39..f90557e 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -894,13 +894,8 @@ static void context_update_window(struct wined3d_context *context)
     if (!(context->hdc = GetDC(context->win_handle)))
     {
         ERR("Failed to get a device context for window %p.\n", context->win_handle);
-        goto err;
+        context->valid = 0;
     }
-
-    return;
-
-err:
-    context->valid = 0;
 }
 
 static void context_destroy_gl_resources(struct wined3d_context *context)




More information about the wine-cvs mailing list