[vlc-commits] d3d11_fmt: fix logging of WCHAR as a char
Steve Lhomme
git at videolan.org
Wed Apr 3 10:45:15 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 3 09:36:50 2019 +0200| [8c7b6e639aa1b17c7e7618e699fb330dc62b370c] | committer: Steve Lhomme
d3d11_fmt: fix logging of WCHAR as a char
We read the value as a WCHAR (UNICODE is set) so format it accordingly.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c7b6e639aa1b17c7e7618e699fb330dc62b370c
---
modules/video_chroma/d3d11_fmt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 5f307933e5..dc0ea96c89 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -26,6 +26,7 @@
#include <vlc_common.h>
#include <vlc_picture.h>
+#include <vlc_charset.h>
#define COBJMACROS
#include <d3d11.h>
@@ -210,7 +211,7 @@ void D3D11_GetDriverVersion(vlc_object_t *obj, d3d11_device_t *d3d_dev)
/* see https://docs.microsoft.com/en-us/windows-hardware/drivers/display/wddm-2-1-features#driver-versioning */
if (_stscanf(szData, TEXT("%d.%d.%d.%d"), &wddm, &d3d_features, &revision, &build) != 4)
{
- msg_Warn(obj, "the adapter DriverVersion '%s' doesn't match the expected format", szData);
+ msg_Warn(obj, "the adapter DriverVersion '%ls' doesn't match the expected format", szData);
return;
}
d3d_dev->WDDM.wddm = wddm;
More information about the vlc-commits
mailing list