From 5054a06eb730fa5f024b945d62b13a30ab2d42d8 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 4d25a77..800587b 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.2.15.2 +Version: 8.2.15.3 Cflags: -I${includedir} diff --git a/include/ffnvcodec/dynlink_loader.h b/include/ffnvcodec/dynlink_loader.h index 23dd7e8..bce9630 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