From 4c06592ad80dc55420c4b9efebae2a39f4ad5542 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Tue, 10 May 2016 14:09:59 +0200 Subject: Fix build on WinRT a63ca3fa106f4b0f9776bf2004661ef6dec2c0c6 caused a build breakage for WinRT as GetModuleHandleEx does not exist on that platform. Change-Id: I143d9cad5f32d98a4d86292dfa73f94a4acdf305 Reviewed-by: Simon Hausmann --- src/corelib/plugin/qlibrary_win.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/corelib') diff --git a/src/corelib/plugin/qlibrary_win.cpp b/src/corelib/plugin/qlibrary_win.cpp index 95e5afa837..46fbba151c 100644 --- a/src/corelib/plugin/qlibrary_win.cpp +++ b/src/corelib/plugin/qlibrary_win.cpp @@ -147,7 +147,6 @@ bool QLibraryPrivate::load_sys() qualifiedFileName = moduleFileName; else qualifiedFileName = dir.filePath(moduleFileName); -#endif // !Q_OS_WINRT if (loadHints() & QLibrary::PreventUnloadHint) { // prevent the unloading of this component @@ -157,7 +156,9 @@ bool QLibraryPrivate::load_sys() reinterpret_cast(pHnd), &hmod); Q_ASSERT(!ok || hmod == pHnd); + Q_UNUSED(ok); } +#endif // !Q_OS_WINRT } return (pHnd != 0); } -- cgit v1.2.3