summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT OLE Win32
diff options
context:
space:
mode:
authorDuong Nguyen <dnguyen>2008-10-07 16:01:06 +0000
committerDuong Nguyen <dnguyen>2008-10-07 16:01:06 +0000
commitd0cdc11121360232474135a9f5f42c7731dec134 (patch)
tree00c99c1b8a1e8c126e6e8234abe1d16ea5db579b /bundles/org.eclipse.swt/Eclipse SWT OLE Win32
parentff0df0aa7fb6b928dfb5c4be69409bc1c06f90c9 (diff)
downloadeclipse.platform.swt-d0cdc11121360232474135a9f5f42c7731dec134.tar.gz
eclipse.platform.swt-d0cdc11121360232474135a9f5f42c7731dec134.tar.xz
eclipse.platform.swt-d0cdc11121360232474135a9f5f42c7731dec134.zip
- fixed comments
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OLE Win32')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java
index e9aed1d202..7c2d703ee4 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java
@@ -421,11 +421,11 @@ protected void addObjectReferences() {
OLE.error(OLE.ERROR_INTERFACE_NOT_FOUND, result);
objIOleObject = new IOleObject(ppvObject[0]);
/*
- * Although the clientSite was passed in during the creation of OleObject
- * (which is required by WMP11 - see bug 173556), some applications ignore this
- * parameter (see bug 211663) because it is optional during the OleCreate.
- * To ensure that we don't set the clientSite twice, we will not set the clientSite
- * again if it's already defined.
+ * Feature in Windows. Despite the fact that the clientSite was provided during the
+ * creation of the OleObject (which is required by WMP11 - see bug 173556),
+ * some applications choose to ignore this optional parameter (see bug 211663)
+ * during OleCreate. The fix is to check whether the clientSite has already been set
+ * and set it. Note that setting it twice can result in assert failures.
*/
int /*long*/[] ppvClientSite = new int /*long*/[1];
result = objIOleObject.GetClientSite(ppvClientSite);