2017-01-15 06:41:39 +01:00
|
|
|
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp
|
|
|
|
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp
|
|
|
|
@@ -77,7 +77,7 @@
|
2015-07-24 01:07:03 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <windowsx.h>
|
|
|
|
-#ifndef Q_OS_WINCE
|
|
|
|
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
|
|
# include <comdef.h>
|
|
|
|
#endif
|
|
|
|
|
2017-01-15 06:41:39 +01:00
|
|
|
@@ -814,7 +814,7 @@
|
|
|
|
HWND_MESSAGE, NULL, static_cast<HINSTANCE>(GetModuleHandle(0)), NULL);
|
2015-07-24 01:07:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
-#ifndef Q_OS_WINCE
|
|
|
|
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
|
|
// Re-engineered from the inline function _com_error::ErrorMessage().
|
|
|
|
// We cannot use it directly since it uses swprintf_s(), which is not
|
|
|
|
// present in the MSVCRT.DLL found on Windows XP (QTBUG-35617).
|
2017-01-15 06:41:39 +01:00
|
|
|
@@ -833,7 +833,7 @@
|
|
|
|
return QString::asprintf("IDispatch error #%u", uint(wCode));
|
|
|
|
return QString::asprintf("Unknown error 0x0%x", uint(comError.Error()));
|
2015-07-24 01:07:03 +02:00
|
|
|
}
|
|
|
|
-#endif // !Q_OS_WINCE
|
|
|
|
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\brief Common COM error strings.
|
2017-01-15 06:41:39 +01:00
|
|
|
@@ -901,12 +901,12 @@
|
2015-07-24 01:07:03 +02:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
-#ifndef Q_OS_WINCE
|
|
|
|
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
|
|
_com_error error(hr);
|
|
|
|
result += QByteArrayLiteral(" (");
|
|
|
|
result += errorMessageFromComError(error);
|
|
|
|
result += ')';
|
|
|
|
-#endif // !Q_OS_WINCE
|
|
|
|
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|