From 271af223b7690e3f6f53f44684a9f57e93f5e006 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 7 Oct 2020 03:49:33 +0900 Subject: [PATCH] info: Fix build on Windows ARM64 device gstinfo.c(3086): error C2094: label 'done' was undefined Part-of: --- gst/gstinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index f38c18d9f3..c9a2337f55 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -3061,8 +3061,6 @@ generate_dbghelp_trace (void) if (!dbghelp_initialize_symbols (process)) return NULL; - trace = g_string_new (NULL); - memset (&context, 0, sizeof (CONTEXT)); context.ContextFlags = CONTEXT_FULL; @@ -3083,9 +3081,11 @@ generate_dbghelp_trace (void) frame.AddrPC.Offset = context.Rip; frame.AddrStack.Offset = context.Rsp; #else - goto done; + return NULL; #endif + trace = g_string_new (NULL); + module_info.SizeOfStruct = sizeof (module_info); save_context = (machine == IMAGE_FILE_MACHINE_I386) ? NULL : &context;