[vlc-commits] dwrite: Fix inverted logic
Hugo Beauzée-Luyssen
git at videolan.org
Thu Dec 29 16:16:14 CET 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 29 16:13:36 2016 +0100| [9a50de6670848becc6a18dcb93b8fd01e0d9c9f6] | committer: Hugo Beauzée-Luyssen
dwrite: Fix inverted logic
We need to print the error on WinRT only since we don't have a fallback.
On desktop, it's ok to fail, especially since it will fail on < Win8.1
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a50de6670848becc6a18dcb93b8fd01e0d9c9f6
---
modules/text_renderer/freetype/fonts/dwrite.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/text_renderer/freetype/fonts/dwrite.cpp b/modules/text_renderer/freetype/fonts/dwrite.cpp
index d2f44ea..addc91a 100644
--- a/modules/text_renderer/freetype/fonts/dwrite.cpp
+++ b/modules/text_renderer/freetype/fonts/dwrite.cpp
@@ -123,8 +123,10 @@ extern "C" int InitDWrite( filter_t *p_filter )
catch( const exception &e )
{
#if !VLC_WINSTORE_APP
- msg_Err( p_filter, "InitDWrite(): %s", e.what() );
FreeLibrary( p_dw_dll );
+ (void)e;
+#else
+ msg_Err( p_filter, "InitDWrite(): %s", e.what() );
#endif
return VLC_EGENERIC;
More information about the vlc-commits
mailing list