Module: wine Branch: master Commit: bf6bb4fc70bfa924d1f19b93de013a4b1f96e890 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf6bb4fc70bfa924d1f19b93de...
Author: Huw Davies huw@codeweavers.com Date: Mon Feb 4 09:53:37 2013 +0000
riched20: Actually pass the ANSI string to the break proc.
---
dlls/riched20/string.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/string.c b/dlls/riched20/string.c index 87dcb67..1c0da24 100644 --- a/dlls/riched20/string.c +++ b/dlls/riched20/string.c @@ -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; }