Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/RTFTransfer.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/RTFTransfer.d Wed Mar 25 16:13:14 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/RTFTransfer.d Wed Mar 25 17:08:05 2009 +0100 @@ -80,8 +80,8 @@ DND.error(DND.ERROR_INVALID_DATA); } // CF_RTF is stored as a null terminated byte array - String string = (cast(ArrayWrapperString)object).array; - wchar* chars = StrToWCHARz(string); + String string = stringcast(object); + LPCWSTR chars = StrToWCHARz(string); int codePage = OS.GetACP(); int cchMultiByte = OS.WideCharToMultiByte(codePage, 0, chars, -1, null, 0, null, null); if (cchMultiByte is 0) {