[FFmpeg-devel] [PATCH] compat: LoadLibrary isn't available on UWP/WinRT

wm4 nfxjfg at googlemail.com
Fri Jun 2 17:11:29 EEST 2017


On Fri,  2 Jun 2017 15:29:07 +0200
Hugo Beauzée-Luyssen <hugo at beauzee.fr> wrote:

> ---
>  compat/w32dlfcn.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/compat/w32dlfcn.h b/compat/w32dlfcn.h
> index bc9bb8c9f5..308763be53 100644
> --- a/compat/w32dlfcn.h
> +++ b/compat/w32dlfcn.h
> @@ -71,7 +71,11 @@ exit:
>  #ifndef LOAD_LIBRARY_SEARCH_SYSTEM32
>  #   define LOAD_LIBRARY_SEARCH_SYSTEM32        0x00000800
>  #endif
> +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
>      return LoadLibraryExA(name, NULL, LOAD_LIBRARY_SEARCH_APPLICATION_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32);
> +#else
> +    return NULL;
> +#endif
>  }
>  #define dlopen(name, flags) win32_dlopen(name)
>  #define dlclose FreeLibrary

Isn't it that LoadLibraryW is available, just not the A version?


More information about the ffmpeg-devel mailing list