[vlc-commits] winstore: fix build

Martin Finkel git at videolan.org
Mon Jan 22 15:49:35 CET 2018


vlc | branch: master | Martin Finkel <martin at videolabs.io> | Mon Jan 22 15:47:18 2018 +0100| [ce26fcc1656d508b71ae0bd25125c6496f80f3f4] | committer: Steve Lhomme

winstore: fix build

Signed-off-by: Martin Finkel <martin at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce26fcc1656d508b71ae0bd25125c6496f80f3f4
---

 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 e35da8ef0d..fe50ac84d7 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -165,10 +165,11 @@ static HKEY GetAdapterRegistry(DXGI_ADAPTER_DESC *adapterDesc)
 #undef D3D11_GetDriverVersion
 void D3D11_GetDriverVersion(vlc_object_t *obj, d3d11_device_t *d3d_dev)
 {
-    memset(&d3d_dev->WDDM, 0, sizeof(d3d_dev->WDDM));
 #if VLC_WINSTORE_APP
     return;
 #else
+    memset(&d3d_dev->WDDM, 0, sizeof(d3d_dev->WDDM));
+
     IDXGIAdapter *pAdapter = D3D11DeviceAdapter(d3d_dev->d3ddevice);
     if (!pAdapter)
         return;



More information about the vlc-commits mailing list