//#include "objbase.h"
#include <rpcproxy.h>
#include <mlang.h>
+#include <mimeole.h>
#include <wine/unicode.h>
#include <wine/debug.h>
//#include "initguid.h"
-#define CP_UNICODE 1200
-
static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj);
static HRESULT MLangConvertCharset_create(IUnknown *outer, void **obj);
static HRESULT EnumRfc1766_create(LANGID LangId, IEnumRfc1766 **ppEnum);
static int han2zen(unsigned char *p1, unsigned char *p2)
{
- int maru = FALSE;
- int nigori = FALSE;
+ BOOL maru = FALSE;
+ BOOL nigori = FALSE;
static const unsigned char char1[] = {129,129,129,129,129,131,131,131,131,
131,131,131,131,131,131,129,131,131,131,131,131,131,131,131,131,131,
131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,
DWORD i = 0;
int j = 0;
unsigned char p2,p;
- int shifted = FALSE;
+ BOOL shifted = FALSE;
while (i < count)
{
DWORD i = 0;
int j = 0;
unsigned char p2,p;
- int shifted = FALSE;
+ BOOL shifted = FALSE;
while (i < count)
{
LONG* pcchLine,
LONG* pcchSkip)
{
+ LONG i, line = cchSrc, skip = 0;
+
FIXME("(%p)->%i %i %s %i %i %p %p\n", iface, locale, uCodePage, debugstr_an(pszSrc,cchSrc), cchSrc, cMaxColumns, pcchLine, pcchSkip);
- *pcchLine = cchSrc;
- *pcchSkip = 0;
+ if (uCodePage == CP_USASCII && cchSrc > cMaxColumns)
+ {
+ for (line = cMaxColumns, i = cMaxColumns - 1; i >= 0; i--)
+ {
+ if (pszSrc[i] == ' ')
+ {
+ while (i >= 0 && pszSrc[i] == ' ')
+ {
+ i--;
+ line--;
+ skip++;
+ }
+ break;
+ }
+ }
+ }
+ *pcchLine = line;
+ *pcchSkip = skip;
return S_OK;
}
reactos/dll/win32/mciqtz32 # Synced to Wine-1.7.17
reactos/dll/win32/mciseq # Synced to Wine-1.7.1
reactos/dll/win32/mciwave # Synced to Wine-1.7.1
-reactos/dll/win32/mlang # Synced to Wine-1.7.1
+reactos/dll/win32/mlang # Synced to Wine-1.7.17
reactos/dll/win32/mmdevapi # Synced to Wine-1.7.1
reactos/dll/win32/mpr # Synced to Wine-1.7.1
reactos/dll/win32/mprapi # Synced to Wine-1.7.1