diff options
author | Veronika Irvine | 2001-09-18 17:37:17 +0000 |
---|---|---|
committer | Veronika Irvine | 2001-09-18 17:37:17 +0000 |
commit | 03669d322a6270ab07d89372006bce56cac775f3 (patch) | |
tree | b9fa4753d8c24224080680eb83402bc5baf8c897 /bundles/org.eclipse.swt | |
parent | 61743e69c2cceb5c0ac1f51cf82675028e8b7363 (diff) | |
download | eclipse.platform.swt-03669d322a6270ab07d89372006bce56cac775f3.tar.gz eclipse.platform.swt-03669d322a6270ab07d89372006bce56cac775f3.tar.xz eclipse.platform.swt-03669d322a6270ab07d89372006bce56cac775f3.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java | 2 |
1 files changed, 1 insertions, 1 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 2c85d77347..aebdf722d3 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 @@ -660,8 +660,8 @@ public String getProgramID(){ if (appClsid != null){
int[] lplpszProgID = new int[1];
if (COM.ProgIDFromCLSID(appClsid, lplpszProgID) == COM.S_OK) {
+ int length = OS.GlobalSize(lplpszProgID[0]);
int ptr = OS.GlobalLock(lplpszProgID[0]);
- int length = OS.GlobalSize(ptr);
char[] buffer = new char[length];
COM.MoveMemory(buffer, lplpszProgID[0], length);
OS.GlobalUnlock(ptr);
|