[vlc-commits] d3d11: make sure we can use LoadLibraryW in debug builds
Steve Lhomme
git at videolan.org
Thu Apr 30 12:09:49 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 27 16:01:18 2020 +0200| [f005a14301d8435f2c29a115ce0778eb025c981e] | committer: Steve Lhomme
d3d11: make sure we can use LoadLibraryW in debug builds
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f005a14301d8435f2c29a115ce0778eb025c981e
---
modules/video_chroma/d3d11_fmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 90e6208044..0b3f60b506 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -391,7 +391,7 @@ static HRESULT CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
#if !defined(NDEBUG)
if (IsDebuggerPresent())
{
- HINSTANCE sdklayer_dll = LoadLibrary(TEXT("d3d11_1sdklayers.dll"));
+ HINSTANCE sdklayer_dll = LoadLibraryW(L"d3d11_1sdklayers.dll");
if (sdklayer_dll) {
creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
FreeLibrary(sdklayer_dll);
More information about the vlc-commits
mailing list