Commit 40d20262 authored by Seungha Yang's avatar Seungha Yang 🐑 Committed by GStreamer Marge Bot
Browse files

gstplugin: Fix for UWP build

SetThreadErrorMode() API is available on UWP but flag values
are desktop API only. Since error dialogs don't exist on UWP,
we don't need to suppress it

Part-of: <!1569>
parent b8068c6f
Pipeline #492645 waiting for manual action with stages
in 36 minutes and 41 seconds
This commit is part of merge request !1569. Comments created here will be created in the context of that merge request.
......@@ -743,18 +743,19 @@ extract_symname (const char *filename)
static char *
get_better_module_load_error (const char *filename, const char *orig_err_msg)
{
BOOL ret;
BOOL ret = 0;
DWORD mode;
wchar_t *wfilename;
HMODULE handle;
char *err_msg = NULL;
wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
ret = SetThreadErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS,
&mode);
#ifdef GST_WINAPI_ONLY_APP
handle = LoadPackagedLibrary (wfilename, 0);
#else
ret = SetThreadErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS,
&mode);
handle = LoadLibraryW (wfilename);
#endif
g_free (wfilename);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment