From 6994dfa4eaee268e2d312413063bd870cceaf91d Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Wed, 17 Oct 2018 18:38:50 +0200 Subject: [PATCH] GetProcAddress always takes ANSI C strings --- ffnvcodec.pc.in | 2 +- include/ffnvcodec/dynlink_loader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffnvcodec.pc.in b/ffnvcodec.pc.in index c7a710f..de375c6 100644 --- a/ffnvcodec.pc.in +++ b/ffnvcodec.pc.in @@ -3,5 +3,5 @@ includedir=${prefix}/include Name: ffnvcodec Description: FFmpeg version of Nvidia Codec SDK headers -Version: 8.0.14.3 +Version: 8.0.14.4 Cflags: -I${includedir} diff --git a/include/ffnvcodec/dynlink_loader.h b/include/ffnvcodec/dynlink_loader.h index dc4f290..9ebfb5d 100644 --- a/include/ffnvcodec/dynlink_loader.h +++ b/include/ffnvcodec/dynlink_loader.h @@ -63,7 +63,7 @@ #if !defined(FFNV_LOAD_FUNC) || !defined(FFNV_SYM_FUNC) # ifdef _WIN32 # define FFNV_LOAD_FUNC(path) LoadLibrary(TEXT(path)) -# define FFNV_SYM_FUNC(lib, sym) GetProcAddress((lib), TEXT(sym)) +# define FFNV_SYM_FUNC(lib, sym) GetProcAddress((lib), (sym)) # define FFNV_FREE_FUNC(lib) FreeLibrary(lib) # else # include