Fix build on WinRT
a63ca3fa10 caused a build breakage
for WinRT as GetModuleHandleEx does not exist on that platform.
Change-Id: I143d9cad5f32d98a4d86292dfa73f94a4acdf305
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
bb10
parent
2f595a0178
commit
4c06592ad8
|
|
@ -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<const wchar_t *>(pHnd),
|
||||
&hmod);
|
||||
Q_ASSERT(!ok || hmod == pHnd);
|
||||
Q_UNUSED(ok);
|
||||
}
|
||||
#endif // !Q_OS_WINRT
|
||||
}
|
||||
return (pHnd != 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue