riched20: Actually pass the ANSI string to the break proc.

This commit is contained in:
Huw Davies 2013-02-04 09:53:37 +00:00 committed by Alexandre Julliard
parent 1eee6e3159
commit bf6bb4fc70
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ ME_CallWordBreakProc(ME_TextEditor *editor, ME_String *str, INT start, INT code)
char *buffer = heap_alloc(buffer_size);
WideCharToMultiByte(CP_ACP, 0, str->szData, str->nLen,
buffer, buffer_size, NULL, NULL);
result = editor->pfnWordBreak(str->szData, start, str->nLen, code);
result = editor->pfnWordBreak((WCHAR*)buffer, start, buffer_size, code);
heap_free(buffer);
return result;
}