Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/URLTransfer.d @ 43:b98647bc0aef
swt win compiles for d2+phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 17:08:05 +0100 |
parents | 4c0057e71936 |
children |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/URLTransfer.d Wed Mar 25 16:13:14 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/URLTransfer.d Wed Mar 25 17:08:05 2009 +0100 @@ -80,9 +80,9 @@ } transferData.result = COM.E_FAIL; // URL is stored as a null terminated byte array - String url = (cast(ArrayWrapperString)object).array; + String url = stringcast(object); int codePage = OS.GetACP(); - wchar[] chars = StrToWCHARs(codePage, url, true ); + String16 chars = StrToWCHARs(codePage, url, true ); int cchMultiByte = OS.WideCharToMultiByte(codePage, 0, chars.ptr, -1, null, 0, null, null); if (cchMultiByte is 0) { transferData.stgmedium = new STGMEDIUM();