From d4485985880780e1a6dfd84f62bac514c9c633c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 6 Jul 2024 19:43:47 +0200 Subject: [PATCH] vo/opengl/context_win: fix crash on init failure Don't try to access window context if it failed to create. --- video/out/opengl/context_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/opengl/context_win.c b/video/out/opengl/context_win.c index 69458218f8..cf3fc05497 100644 --- a/video/out/opengl/context_win.c +++ b/video/out/opengl/context_win.c @@ -292,7 +292,7 @@ static bool wgl_init(struct ra_ctx *ctx) p->opts = p->opts_cache->opts; if (!vo_w32_init(ctx->vo)) - goto fail; + return false; if (ctx->opts.want_alpha) vo_w32_set_transparency(ctx->vo, ctx->opts.want_alpha);