summaryrefslogtreecommitdiffstats
path: root/src/activeqt/container/qaxwidget.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-08-03 15:18:44 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-08-03 15:20:15 (GMT)
commit3d5ffba1a183bbe3d930158e87f65f858b78559c (patch)
tree8f838b28e4d89bfe4f08199277d9a249b9e97fcb /src/activeqt/container/qaxwidget.cpp
parentfb622fa47ef81dfa95b9351d87b3415b9e03a368 (diff)
downloadQt-3d5ffba1a183bbe3d930158e87f65f858b78559c.zip
Qt-3d5ffba1a183bbe3d930158e87f65f858b78559c.tar.gz
Qt-3d5ffba1a183bbe3d930158e87f65f858b78559c.tar.bz2
Fix compile error on WinCE.
Reviewed-by: TrustMe
Diffstat (limited to 'src/activeqt/container/qaxwidget.cpp')
-rw-r--r--src/activeqt/container/qaxwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/activeqt/container/qaxwidget.cpp b/src/activeqt/container/qaxwidget.cpp
index 19f00db..ff6bcb8 100644
--- a/src/activeqt/container/qaxwidget.cpp
+++ b/src/activeqt/container/qaxwidget.cpp
@@ -985,7 +985,11 @@ HRESULT WINAPI QAxClientSite::TranslateAccelerator(LPMSG lpMsg, DWORD /*grfModif
bool ActiveQtDetected = false;
bool fromInProcServer = false;
+#ifdef GWLP_USERDATA
LONG_PTR serverType = GetWindowLongPtr(lpMsg->hwnd, GWLP_USERDATA);
+#else
+ LONG serverType = GetWindowLong(lpMsg->hwnd, GWL_USERDATA);
+#endif
if (serverType == QAX_INPROC_SERVER) {
ActiveQtDetected = true;
fromInProcServer = true;