mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1569>
This commit is contained in:
parent
912a39ba6e
commit
e3de025a03
1 changed files with 4 additions and 3 deletions
|
@ -746,18 +746,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);
|
||||
|
|
Loading…
Reference in a new issue